Export (0) Print
Expand All
Expand Minimize

AtlComModuleUnregisterServer

This function is called to unregister every object in the object map.

Important note Important

This function cannot be used in applications that execute in the Windows Runtime.

ATLINLINE ATLAPI AtlComModuleUnregisterServer( 
_ATL_COM_MODULE* pComModule, 
BOOL bUnRegTypeLib, 
const CLSID* pCLSID  
);

pComModule

Pointer to the COM module.

bUnRegTypeLib

TRUE if the type library is to be registered.

pCLSID

Points to the CLSID of the object to be unregistered. If NULL all objects in the object map will be unregistered.

Returns S_OK on success, or an error HRESULT on failure.

AtlComModuleUnregisterServer walks the ATL object map and unregisters each object in the map. If pCLSID is not NULL, then only the object referred to by pCLSID is unregistered; otherwise all of the objects are unregistered.

This function is called by CAtlComModule::UnregisterServer.

Header: atlbase.h

Show:
© 2014 Microsoft