function DllUnregisterServer: HResult;
Unregisters an OLE automation server in the current module with the system registry.
Do not call DllUnregisterServer directly. DllUnregisterServer is exported by in-process automation servers (DLLs) and instructs the DLL to remove entries created through DllRegisterServer. DLLRegisterServer is called when a server is uninstalled.
The return values for DllUnregisterServer are as follows:
The registry entries were successfully removed.
Some or all registry entries were not removed.
Note: DllUnregisterServer is one of four functions in the Comserv unit that every in-process server must export so that Windows can manage the server resources properly. The others are DllCanUnloadNow, DllGetClassObject, and DllRegisterServer. It should never be necessary for users to directly call or alter any of these functions.