Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.


Unregisters every object in the object map.

Note   This function is obsolete in Visual C++ .NET 2002 and later but is available for backward compatibility with projects created with previous versions of Visual C++.

ATLAPI AtlModuleUnregisterServerEx(
   BOOL bUnRegTypeLib,
   const CLSID* pCLSID 



Pointer to a CComModule class or derived class.


TRUE if the type library is to be registered.


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.

This function 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 obsolete. Instead, use its replacement, AtlComModuleUnregisterServer.

This helper function is used by CComModule::UnregisterServer.

Community Additions

© 2015 Microsoft