-
command line parameters
This may be a stupid question, but what is passed into winmain with regard to the command line parameters?
if it for example:
"key32.exe /a"
or is it just the extra parts: e.g.
"/a"
and if so is it just a string to take apart?! or can you simply do a case statment or if statement?
if(lpszCmdLine == "\a")
{
do this..
}
cheers in advance
Andy
-
It's the whole command line - name of file plus any arguments
-
I don't think the file name gets passed to WinMain - you need to use GetModuleFileName.
-
Why don't you just print it to stdout and take a look?