ArgxGetArguments function¶
Retrieves the calling process’s command line arguments in the form of an argument vector. If the ArgX protocol is not in use, this function will parse the flat command line using the CommandLineToArgvW API and return the results.
Syntax¶
BOOL ArgxGetArguments(
PDWORD pdwArgc,
LPCTSTR** plpArgv,
BOOL* pbUserArgX
);
Parameters¶
pdwArgc- A pointer to a
DWORDthat will be initialised with a count of the number of arguments in the argument vector. May not beNULL. plpArgv- Points to a variable that will receive the argument vector pointer.
May not be
NULL. pbUserArgX- Points to a
BOOLvariable that will be set toTRUEif the ArgX mechanism was used to obtain the arguments andFALSEotherwise. If not required, may beNULL.
Return value¶
If the function succeeds, the return value is nonzero.
If the function fails, it will return zero, with extended error information supplied via GetLastError.