RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
ComServ.DllRegisterServer Function

Registers an in-process ActiveX server in the current module within the system registry.

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

ComServ

Do not call DllRegisterServer directly. DllRegisterServer is exported by in-process ActiveX servers (DLLs) and instructs the DLL to create its registry entries for the type library and all classes supported in that server module. DLLRegisterServer is usually called when the ActiveX server is installed on a user's system. 

If this function fails, the state of the registry for its type library and its classes is indeterminate. 

The return values for DllRegisterServer are as follows:

Value 
Meaning 
S_OK  
The registry entries were created successfully.  
E_FAIL  
The registry entries were not completed.  

Note: DllRegisterServer 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 DllUnregisterServer.
 

DllCanUnloadNow 

DllGetClassObject 

DllUnregisterServer 

Requirements for Transactional Objects

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