Process Control Function
int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow);
int wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nCmdShow);
int _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow);
Internationalization (I18n) Function Overview
The WinMain function is the main entry point for a Windows-based application, called with the instance handle of the application, the null-terminated command line string, and a control flag for the display window. WinMain should return the exit value contained in the WM_QUIT message's wParam parameter if it succeeds; otherwise, if it terminates before entering the message loop, it sould return zero.
wWinMain is the wide-character version of WinMain that supports a null-terminated wide-character command line string.
_tWinMain is the Windows-only Generic version of the function; with the _MBCS or _UNICODE compiler flags determining its mapping to either WinMain or wWinMain .
See the MSDN library for more information.
I18n Issues
Use the appropriate version of the function as required for internationalization support.
Recommended Replacements*
*If you're already using the recommended function, see I18n Issues for other reasons why Globalyzer is detecting the function.
Process Control Functions
|