Vcl.SvcMgr.TServiceApplication.DispatchServiceMain

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure DispatchServiceMain(Argc: DWord; Argv: PLPWSTR);

C++

void __fastcall DispatchServiceMain(unsigned Argc, Winapi::Windows::PLPWSTR Argv);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
Vcl.SvcMgr.pas
Vcl.SvcMgr.hpp
Vcl.SvcMgr TServiceApplication

Description

Calls the Main routine of the service with the given name.

This method looks for the service with the name given through the Argv parameter and, if found, DispatchServiceMain calls the service's Main routine; in this case, Argc is also passed to the service's Main procedure.