System.Win.ComServ.DllUnregisterServer
Delphi
function DllUnregisterServer: HResult;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Win.ComServ.pas | System.Win.ComServ | System.Win.ComServ |
Description
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:
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.