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

CLSID Key

· 52CE 我爱测

A CLSID is a globally unique identifier that identifies a COM class object. If your server or container allows linking to its embedded objects, you need to register a CLSID for each supported class of objects.

A CLSID is a globally unique identifier that identifies a COM class object. If your server or container allows linking to its embedded objects, you need to register a CLSID for each supported class of objects.

Registry Key

HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{CLSID}

Registry key Description
AppID Associates an AppID with a CLSID.
AutoConvertTo Specifies the automatic conversion of a given class of objects to a new class of objects.
AutoTreatAs Automatically sets the CLSID for the TreatAs key to the specified value.
AuxUserType Specifies an application's short display name and application names.
Control Identifies an object as an ActiveX Control.
Conversion Used by the Convert dialog box to determine the formats an application can read and write.
DataFormats Specifies the default and main data formats supported by an application.
DefaultIcon Provides default icon information for iconic presentations of objects.
InprocHandler Specifies whether an application uses a custom handler.
InprocHandler32 Specifies whether an application uses a custom handler.
InprocServer Specifies the path to the in-process server DLL.
InprocServer32 Registers a 32-bit in-process server and specifies the threading model of the apartment the server can run in.
Insertable Indicates that objects of this class should appear in the Insert Object dialog box list box when used by COM container applications.
Interface An optional entry that specifies all interface IDs (IIDs) supported by the associated class.
LocalServer Specifies the full path to a 16-bit local server application.
LocalServer32 Specifies the full path to a 32-bit local server application.
MiscStatus Specifies how to create and display an object.
ProgID Associates a ProgID with a CLSID.
ToolBoxBitmap32 Identifies the module name and resource ID for a 16 x 16 bitmap to use for the face of a toolbar or toolbox button.
TreatAs Specifies the CLSID of a class that can emulate the current class.
Verb Specifies the verbs to be registered for an application.
Version Specifies the version number of the control.
VersionIndependentProgID Associates a ProgID with a CLSID. This value is used to determine the latest version of an object application.

Remarks

The HKEY_LOCAL_MACHINE\SOFTWARE\Classes key corresponds to the HKEY_CLASSES_ROOT key, which was retained for compatibility with earlier versions of COM.

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, you can use the Uuidgen.exe, or use the CoCreateGuid function.

The CLSID is a 128-bit number, in hex, within a pair of curly braces.

Related topics

CoCreateGuid

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)

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

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