RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TServiceApplication.Run Method

Installs, registers, and adds services to its component list, and creates a thread for the service application.

Pascal
procedure Run; virtual;
C++
virtual __fastcall Run();

Run handles installing and uninstalling services, depending on the command line switches. When the service application is run using the /INSTALL switch, it registers the services it contains. When run using the /UNINSTALL switch, it unregisters its services. Unless the application is run with the /SILENT switch, the service application shows a confirmation message after successfully installing or uninstalling its services. 

If not called with the /INSTALL or /UNINSTALL switch, Run creates a service application thread that responds to Windows messages from clients. Note that this thread is for the application and differs from the dedicated TServiceThread instances associated with individual services in the application. 

 

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