COM Registry Keys

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

Key Description
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.
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.
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.
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.
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.
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.
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.

Registering COM Applications