Share via


CAtlComModule::UnregisterServer

Call this method to unregister each object in the object map.

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

Parameters

  • bRegTypeLib
    TRUE if the type library is to be unregistered. The default value is FALSE.

  • pCLSID
    Points to the CLSID of the object to be unregistered. If NULL (the default value), all objects in the object map will be unregistered.

Return Value

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

Remarks

Calls the global function AtlComModuleUnregisterServer.

Requirements

Header: atlbase.h

See Also

Reference

CAtlComModule Class

CAtlComModule::RegisterServer

Other Resources

CAtlComModule Members