Use C ++ code to create a Windows desktop application

WinMain function

The only Windows Application entrance.

Function prototype

1 int WINAPI WinMain
2 {
3     HINSTANCE hInstancem
4     HINSTANCE hPreInstance,
5     LPSTR lpCmdLine,
6     int nCmdShow 
7 }

WINAPI is defined as follows

#define WINAPI _stdcall

 

Guess you like

Origin www.cnblogs.com/zhaotianff/p/11297319.html