Win32 API command line arguments parsing

c, command-line, command-line-arguments, winapi, windows

Solution

There is no Win32 support for parsing command-line arguments.

See related articles at MSDN: Parsing C++ Command-Line Arguments Argument Definitions Customizing C++ Command-Line Processing

also look at similar questions: What parameter parser libraries are there for C++? Parsing parameters to main() Option Parsers for C/C++? What's an effective way to parse command line parameters in C++? ...

Problem

I'm writing Win32 console application, which can be started with optional arguments like this: ``` app.exe /argName1:"argValue" /argName2:"argValue" ``` Do I have to parse it manually (to be able to determine, which arguments are present) from argc/argv variables, or does Win32 API contain some arguments parser?

Original source

Related problems