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

COM Registry Keys

· 52CE 我爱测

The registry contains a wealth of information used by COM. The most important information is stored in the following keys.

The registry contains a wealth of information used by COM. The most important information is stored in the following keys.

Key Description
AppID Groups the configuration options (a set of named values) for one or more distributed COM objects into one location in the registry. Subkeys under this key are used to map an application identifier (AppID) to a remote server name. To simplify the management of common security and configuration settings, distributed COM objects hosted by the same executable are grouped into one AppID.
CLSID A class identifier (CLSID) is a globally unique identifier that identifies a COM class object. If the server or container allows linking to embedded objects, register a CLSID for each supported class of objects. The CLSID key contains information used by the default COM handler to return information about a class when it is in the running state. To obtain a CLSID for your application, use uuidgen.exe, found in the \TOOLs directory of the COM Toolkit, or use CoCreateGuid.
ProgID A programmatic identifier (ProgID) is a registry entry that can be associated with a CLSID. The ProgID key maps a user-friendly string to a CLSID. Like the CLSID, the ProgID identifies a class, but with less precision. Use a ProgID in programming situations where it is not possible to use a CLSID. ProgIDs should not appear in the user interface. ProgIDs are not guaranteed to be unique, so they can be used only where name collisions do not occur.
VersionIndependentProgID Associates a ProgID with a CLSID. It is used to determine the latest version of an object application. Like the ProgID, the version-independent ProgID can be registered with a human-readable name. Applications must register a version-independent programmatic identifier under the VersionIndependentProgID key. The version-independent ProgID refers to the application's class and does not change from version to version, instead remaining constant across all versions. It is used with macro languages and refers to the currently installed version of the application's class. The version-independent ProgID must correspond to the name of the latest version of the object application.
file_extension Associates a file name extension with a ProgID. Information contained in the file name extension key is used by both the system and file monikers. GetClassFile uses the file name extension key to supply the associated CLSID.
Interface Registers new interfaces by associating an interface name with an interface identifier (IID). It maps IIDs to information specific to an interface. The information is required mainly for using interfaces across process boundaries. When adding a new interface, the Interface key must be completed for COM to register the new interface. There must be one IID subkey for each new interface.
Ole Controls default launch and access permissions for distributed COM objects as well as call-level security capabilities for applications that do not call CoInitializeSecurity. Only administrators have full access to this portion of the registry. All other users have read-only access.

Related topics

Registering COM Applications

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 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

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

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