Platform sdk: dlls, Process, and Threads says:
LPWSTR* CommandLineToArgvW(
LPCWSTR lpCmdLine,
int* pNumArgs
);
lpCmdLine
[in] Pointer to a null-terminated Unicode command-line string. An
application will usually directly pass on the value returned by a call to the
GetCommandLineW function.
If this parameter is the empty string, "", the function returns the path to
the current executable file
With a command line that looks like
C:\Program Files\MyCompany\MyApp
when I call CommandLineToArgvW(L"",&NumArgs);
this routine is returning "C:\Program" as argv[0]
and "Files\MyCompany\MyApp" as argv[1]
and telling me I've got 2 arguments.
This is not correct!
--
Gak -
Finecats