Vcl.SvcMgr.TServiceApplication.Run
Delphi
procedure Run; virtual;
C++
virtual void __fastcall Run();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.SvcMgr.pas Vcl.SvcMgr.hpp |
Vcl.SvcMgr | TServiceApplication |
Description
Installs, registers, and adds services to its component list, and creates a thread for the service application.
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.