/* WinMain.c * * Simple Windows Main Program * */ #define STRICT #include BOOL InitApplication( HINSTANCE ); BOOL InitInstance( HINSTANCE, int ); int PASCAL WinMain ( HINSTANCE hinstCurrent, HINSTANCE hinstPrevious, LPSTR lpszCmdLine, int nCmdShow ) { MSG msg; if( hinstPrevious == NULL ) if( !InitApplication( hinstCurrent ) ) return FALSE; if( !InitInstance( hinstCurrent, nCmdShow ) ) return FALSE; while( GetMessage( &msg, NULL, 0, 0 ) ) { TranslateMessage( &msg ); DispatchMessage( &msg ); } return( msg.wParam ); }