System.Win.ComServ.DllRegisterServer

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function DllRegisterServer: HResult;

Properties

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

Description

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

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.

See Also