home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / d / d020_1_4 / 6.ddi / MEMORY / MEMORY1.C < prev    next >
Encoding:
C/C++ Source or Header  |  1990-06-01  |  825 b   |  36 lines

  1. #include "windows.h"
  2. #include "memory.h"
  3.  
  4. HANDLE hInst;
  5.  
  6. /****************************************************************************
  7.     MODULE:  memory1.c
  8.  
  9.     FUNCTION: WinMain(HANDLE, HANDLE, LPSTR, int)
  10.  
  11.     PURPOSE: calls initialization function, processes message loop
  12.  
  13. ****************************************************************************/
  14.  
  15. int PASCAL WinMain(hInstance, hPrevInstance, lpCmdLine, nCmdShow)
  16. HANDLE hInstance;
  17. HANDLE hPrevInstance;
  18. LPSTR lpCmdLine;
  19. int nCmdShow;
  20. {
  21.     MSG msg;
  22.  
  23.     if (!hPrevInstance)
  24.     if (!InitApplication(hInstance))
  25.         return (FALSE);
  26.  
  27.     if (!InitInstance(hInstance, nCmdShow))
  28.         return (FALSE);
  29.  
  30.     while (GetMessage(&msg, NULL, NULL, NULL)) {
  31.     TranslateMessage(&msg);
  32.     DispatchMessage(&msg);
  33.     }
  34.     return (msg.wParam);
  35. }
  36.