3 ms·
There is an API to get an argc/argv-style list of arguments: https://docs.microsoft.com/en-us/windows/win32/api/shellapi/nf-shellapi-commandlinetoargvw https:/
by sebazzz 5y ago
There is an API to get an argc/argv-style list of arguments:
https://docs.microsoft.com/en-us/windows/win32/api/shellapi/nf-shellapi-commandlinetoargvw https://docs.microsoft.com/en-us/windows/win32/api/shellapi/...
I suppose that is what the C++ runtime uses to feed main/WinMain/_tmain entry points in Win32 programs.
- banana_giraffe 5y agoAlso, as far as I know, there's no "ArgvToCommandLine", at least officially. There is a fairly common one floating around the Internet. That means there are always subtle little gotchas with programs that build up command lines to call other programs.