argv is an array of agrc pointers of type char* , each representing a character sequence.
1 2 3 4 5 6
int WINAPI WinMain(
HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow
);
Now lpCmdLine contains the whole command line...(without the program name itself). Two questions:
1. Why can't WinMain() get an array like main() ?
2. Does lpCmdLine contain the argv[] sequences together with spaces between parameters? In other words, how do I get the parameters from lpCmdLine?