The HrServiceGetArgv function obtains the command line arguments as an array of strings (argv[]).
Header file: | WINWRAP.H |
Library: | WINWRAP.LIB |
HRESULT HrServiceGetArgv(
DWORD * lpdwArgc,
LPTSTR ** lppszArgv
);
See Return Values.
The HrServiceGetArgv function returns the number of arguments in the argv[] array and a pointer to this array. This function can be used by any thread to get the service argv[] after the service of Windows NT Server has been started.
For more information on this function, see the HrServiceGetArgv function in WINWRAP.C under the WINWRAP code sample in Code Samples folder.
For more information on the WINWRAP library, see Using WINWRAP Functions, Mandatory Entry Points and Variables, and Events Signalled.
fIsService, FServiceReportStatus, HrServiceConfirmStop, HrServiceGetName, HrServiceProcessControl, HrServiceShutdown, HrServiceStartup, HrServiceWaitForContinue, HrServiceWaitForControl, HrServiceWaitForStop, HServiceCreateThread, ServiceMain, ServiceStop