Platform SDK: Exchange Server

HrServiceGetArgv

The HrServiceGetArgv function obtains the command line arguments as an array of strings (argv[]).

Quick Info

Header file: WINWRAP.H
Library: WINWRAP.LIB

HRESULT HrServiceGetArgv(
  DWORD * lpdwArgc,    
  LPTSTR ** lppszArgv  
);
 

Parameters

lpdwArgc
Output parameter. Points to the number of arguments in the argv[] array.
lppszArgv
Output parameter. Points to the array of argument string pointers.

Return Values

See Return Values.

Remarks

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.

See Also

fIsService, FServiceReportStatus, HrServiceConfirmStop, HrServiceGetName, HrServiceProcessControl, HrServiceShutdown, HrServiceStartup, HrServiceWaitForContinue, HrServiceWaitForControl, HrServiceWaitForStop, HServiceCreateThread, ServiceMain, ServiceStop