大网数据广告活动
Windows 系统接口

LocalServer32

· 52CE 我爱测

Specifies the full path to a 32-bit local server application.

Specifies the full path to a local COM server application of any bitness or architecture.

Registry entry

HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID
   {CLSID}
      LocalServer32
         (Default) = path
         ServerExecutable = path

Remarks

The default value of the LocalServer32 Registry key is used to specify the location of the COM server application and, optionally, application-specific command-line arguments. COM appends the string " -Embedding" to this value so that applications can distinguish when COM is launching them from other cases. This information is passed as the lpCommandLine parameter of CreateProcess. See that documentation about the ambiguity, and security issues, that arise if the path isn't properly quoted or not fully specified.

The ServerExecutable value, type REG_SZ, first supported with Windows Server 2003, works in conjunction with the default value to prevent ambiguity in identifying the program to launch. It is passed as the lpApplicationName parameter to CreateProcess, and shouldn't be quoted. If this value isn't specified, then NULL is used.

Example LocalServer32 default value.

"\"C:\Program Files\Company Files\Application.exe\" param1 param2"

When COM starts a local server, the server must register a class object within a window of time (by default, 60 seconds), otherwise a timeout occurs.

Local servers can be hosted in Win32 services based on the LocalService named value of the CLSID key. If present, the LocalServer32 key is ignored.

Related topics

LocalService

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 01/31/2022
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。