CComModule::UpdateRegistryClass

HRESULT UpdateRegistryClass( const CLSID& clsid, LPCTSTR lpszProgID, LPCTSTR lpszVerIndProgID, UINT nDescID, DWORD dwFlags, BOOL bRegister );

Return Value

A standard HRESULT value.

Parameters

clsid

[in] The CLSID of the object to be registered or unregistered.

lpszProgID

[in] The ProgID associated with the object.

lpszVerIndProgID

[in] The version-independent ProgID associated with the object.

nDescID

[in] The identifier of the string resource for the object's description.

dwFlags

[in] Specifies the threading model to enter in the registry. Possible values are THREADFLAGS_APARTMENT, THREADFLAGS_BOTH, or AUTPRXFLAG.

bRegister

[in] Indicates whether the object should be registered.

Remarks

If bRegister is TRUE, this method enters the object's standard class registration in the system registry. If bRegister is FALSE, it removes the object's registration.

Depending on the value of bRegister, UpdateRegistryClass calls either RegisterClassHelper or UnregisterClassHelper.

By specifying the DECLARE_REGISTRY macro, UpdateRegistryClass will be invoked automatically when your object map is processed.

CComModule OverviewClass Members