mirror of
https://github.com/mangosfour/server.git
synced 2025-12-18 01:37:01 +00:00
[10091] Use ACE for command line options parse.
Note: "--service run" renamed to "-s run" in consistence with other serrvice options. Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
9d8dd578ca
commit
78400f8406
4 changed files with 110 additions and 109 deletions
|
|
@ -57,7 +57,7 @@ bool WinServiceInstall()
|
|||
if (GetModuleFileName( 0, path, sizeof(path)/sizeof(path[0]) ) > 0)
|
||||
{
|
||||
SC_HANDLE service;
|
||||
std::strcat(path, " --service");
|
||||
std::strcat(path, " -s run");
|
||||
service = CreateService(serviceControlManager,
|
||||
serviceName, // name of service
|
||||
serviceLongName, // service name to display
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue