home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Warp Unleashed (Deluxe Edition) / os2warpu.zip / os2warpu / SYSTEM.PRT < prev    next >
Text File  |  1993-08-11  |  974b  |  29 lines

  1. ; DLL functions for accessing system information.
  2.  
  3. ;The following call returns the X or Y resolution:
  4. USER.EXE: int WINAPI GetSystemMetrics(int);
  5. ;Example1-    GetSystemMetrics(0)
  6. ;Example2-    GetSystemMetrics(1)
  7.  
  8. ;The following call returns the percentage of free resources:
  9. USER.EXE: UINT WINAPI GetFreeSystemResources(UINT);
  10. ;Example1-    GetFreeSystemResources(0)    -returns free system resources.
  11. ;Example2-    GetFreeSystemResources(1)    -returns free GDI resources.
  12. ;Example3-    GetFreeSystemResources(2)    -returns free USER resources.
  13.  
  14. ;The following call returns free space in memory:
  15. KRNL386.EXE: DWORD WINAPI GetFreeSpace(UINT);
  16. ;Example1-    GetFreeSpace(0)            -returns free memory space.
  17.  
  18. ;The following call returns the IA Window instance:
  19. USER.EXE: WORD WINAPI GetWindowWord(HWND, int);
  20. ;Example1-    GetWindowWord(@_RUN_WND, -6);
  21.  
  22. ;The following call causes a system message beep:
  23. USER.EXE: void WINAPI MessageBeep( WORD );
  24. ;Example1-    MessageBeep(-1)
  25.  
  26.  
  27.  
  28.  
  29.