CComModule::RegisterServer

HRESULT RegisterServer( BOOL bRegTypeLib = FALSE, const CLSID* pCLSID = NULL );

Return Value

A standard HRESULT value.

Parameters

bRegTypeLib

[in] Indicates whether the type library will be registered. The default value is FALSE.

pCLSID

[in] Points to the CLSID of the object to be registered. If NULL (the default value), all objects in the object map will be registered.

Remarks

Depending on the pCLSID parameter, updates the system registry for a single class object or for all objects in the object map. If bRegTypeLib is TRUE, the type library information will also be updated.

The BEGIN_OBJECT_MAP macro starts your object map definition.

RegisterServer will be called automatically by DLLRegisterServer for a DLL or by WinMain for an EXE run with the /RegServer command line option.

CComModule OverviewClass Members

See Also   CComModule::UnregisterServer