Compartir a través de


CComModule::RegisterServer

As of ATL 7.0, CComModule is obsolete: see ATL Module Classes for more details.

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

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.

Return Value

A standard HRESULT value.

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.

See OBJECT_ENTRY_AUTO for information on how to add an entry to the object map.

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

Requirements

Header: atlbase.h

See Also

Concepts

CComModule Class

CComModule Members

CComModule::UnregisterServer