RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
ComServ.DllUnregisterServer Function

Unregisters an OLE automation server in the current module with the system registry.

Pascal
function DllUnregisterServer: HResult; stdcall;
C++
__stdcall HRESULT DllUnregisterServer();

ComServ

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:

Value 
Meaning 
S_OK  
The registry entries were successfully removed.  
S_FALSE  
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.
 

DllCanUnloadNow 

DllGetClassObject 

DllRegisterServer

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!