Depending on the pCLSID parameter, unregisters either a single class object or all objects in the object map.
UnregisterServer will be called automatically by DLLUnregisterServer for a DLL or by WinMain for an EXE run with the /UnregServer command line option.
See OBJECT_ENTRY_AUTO for information on how to add an entry to the object map.