home *** CD-ROM | disk | FTP | other *** search
/ Thinkpad Essentials 1997 / cd1may97.iso / DATA.Z / SYSTEM.PRT < prev    next >
Text File  |  1994-12-07  |  2KB  |  51 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. ;The following call will return the system colors:
  27. AMTAPP.DLL: WORD WINAPI LIB_GetScreenColors(VOID);
  28. ;Example 1-    LIB_GetScreenColors()
  29.  
  30. ;The following call evokes a "Stay on Top" state for the IA window:
  31. USER.EXE: BOOL WINAPI SetWindowPos(HWND,HWND,int,int,int,int,UINT);
  32. ;Example-    SetWindowPos(@_RUN_WND,-1,0,0,0,0,3)
  33.  
  34. ;The following call searches a specified path for a file:
  35. KRNL386.EXE: HANDLE WINAPI OpenFile(LPCSTR, LPSTR, UINT);
  36. ;Example-    OpenFile("C:\test.bmp", @junk, 0x4000);
  37.  
  38. ;The following call executes a DOS program in a "hidden" window:
  39. KRNL386.EXE: INT WINAPI WinExec(LPCSTR,UINT);
  40. ;Example-    WinExec("c:\iauthor\launch.bat",0)
  41.  
  42. USER.EXE: BOOL WINAPI MoveWindow(HWND,INT,INT,INT,INT,INT);
  43. KRNL386.EXE:  INT WINAPI GetProfileString(LPCSTR, LPCSTR, LPCSTR, LPSTR, INT);
  44. KRNL386.EXE: BOOL WINAPI WriteProfileString(LPCSTR, LPCSTR, LPCSTR);
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.