home *** CD-ROM | disk | FTP | other *** search
- /*
- *
- * MODULE: DSIMAIN.C
- *
- */
-
- #include "dsimport.h"
-
- HANDLE hInst;
-
- /*
- *
- * FUNCTION: WINMAIN(HANDLE, HANDLE, LPSTR, int)
- *
- */
- int FAR PASCAL WinMain(hInstance, hPrevInstance, lpCmdLine, nCmdShow)
- HANDLE hInstance;
- HANDLE hPrevInstance;
- LPSTR lpCmdLine;
- int nCmdShow;
- {
- MSG msg;
- hInst = hInstance;
-
- if (!hPrevInstance)
- if(!InitializeApplication(hInst))
- return 0;
-
- if (!InitializeInstance(lpCmdLine, nCmdShow))
- return 0;
-
- while (GetMessage(&msg, NULL, NULL, NULL))
- {
- TranslateMessage(&msg);
- DispatchMessage(&msg);
- }
-
- return(msg.wParam);
- }
-