int WINAPI WinMain(
HINSTANCE hInstance, //handle of current instance
HINSTANCE hPrevInstance,//handle of prev instance
LPSTR pszCmdLine, //command line
int nCmdShow //show state of window
)
nCmdShow如何传递进程序?
HINSTANCE hInstance, //handle of current instance
HINSTANCE hPrevInstance,//handle of prev instance
LPSTR pszCmdLine, //command line
int nCmdShow //show state of window
)
nCmdShow如何传递进程序?
start:
invoke GetModuleHandle, NULL
mov g_hInst, eax
invoke GetCommandLine, NULL
mov g_CmdLine, eax
...
invoke WinMain, g_hInst, NULL, g_CmdLine, SW_SHOWDEFAULT
invoke ExitProcess, eax
WinMain proc hInstance:DWORD, hInstPrev:DWORD, lpCmdLine:DWORD, nCmdShow:DWORD
...
xor eax, eax
ret
WinMain endp
end start
HINSTANCE hInstance,//handle of current instance
HINSTANCE hPrevInstance,//handle of prev instance
LPSTR pszCmdLine, //command line
int nCmdShow//show state of window
)
{
..........
ShowWindow(hWnd,nCmdShow);
........
}
这个nCmdShow如何传递进程序作为参数,如何以不同的方式显示