To _In_
detect, WinMain
modify as follows:
int WINAPI WinMain(
_In_ HINSTANCE hInstance, // handle to current instance
_In_opt_ HINSTANCE hPrevInstance, // handle to previous instance
_In_ LPSTR lpCmdLine, // command line
_In_ int nCmdShow // show state
)
The meaning of each parameter is as follows
_In_
:Input parameters_Out_
:Output parameters_In_opt_
: optional input parameters