RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
ComObj.RegisterAsService Function

Registers a COM object as an NT service.

Pascal
procedure RegisterAsService(const ClassID: string; const ServiceName: string);
C++
RegisterAsService(const AnsiString ClassID, const AnsiString ServiceName);

Use RegisterAsService to register a service given a classID. ClassID specifies the classID of the COM object that implements the service. ServiceName specifies the name under which the object is registered. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!