2.2.11 Application Command-Line Parameter

You can examine the command line that starts your application by using the lpszCmdLine parameter. The lpszCmdLine parameter points to the start of a character array that contains the command exactly as it was typed by the user. To extract filenames or options from the command line, you need to parse the command line into individual values. Alternatively, you can use the __argc and __argv variables. For more information, see Chapter 14, “C and Assembly Language.”