I\'m writing Win32 console application, which can be started with optional arguments like this:
app.exe /argName1:\"argValue\" /argName2:\"argValue\"
Not sure about existence of such a win32 api function(s), but Boost.Program_Options library could help you.