Let me clarify: wmain2 is my "main()" function of my code (which I did not copy here). If I compile my code using that section as my entry point, my code will use the command prompt. I want this as a Windows program (int WINAPI WinMain()" so that it does not display the command prompt window.
I just need to send the argv, argc information to the wmain2 function via WINAPI WinMain().
So, in the code I posted in the original post, if I changed line #9 to read: