Group: Process and Thread - Library: kernel32
Retrieving the command line for the VFP session
Converting command-line string to a set of Unicode argument strings
LPTSTR GetCommandLine(VOID);
DECLARE INTEGER GetCommandLine IN kernel32
This function has no parameters
The return value is a pointer to the command-line string for the current process
SYS(16), SYS(2019), and PCOUNT() all give same amount of information about the command line. May be for the VPF3 there is no other way to define a configuration file name but using this function.
There is another difference. GetCommandLine keeps its data as long as the process is running, whereas using native VFP functions you must store the input parameters in global variables, if you want to reach them later.
See also: CommandLineToArgvW.