From RAD Studio API Documentation
Jump to: navigation, search


function DllUnregisterServer: HResult;


Type Visibility Source Unit Parent
function public System.Win.ComServ.pas System.Win.ComServ System.Win.ComServ


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


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.

See Also