home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Warp Unleashed (Deluxe Edition)
/
os2warpu.zip
/
os2warpu
/
SYSTEM.PRT
< prev
next >
Wrap
Text File
|
1993-08-11
|
974b
|
29 lines
; DLL functions for accessing system information.
;The following call returns the X or Y resolution:
USER.EXE: int WINAPI GetSystemMetrics(int);
;Example1- GetSystemMetrics(0)
;Example2- GetSystemMetrics(1)
;The following call returns the percentage of free resources:
USER.EXE: UINT WINAPI GetFreeSystemResources(UINT);
;Example1- GetFreeSystemResources(0) -returns free system resources.
;Example2- GetFreeSystemResources(1) -returns free GDI resources.
;Example3- GetFreeSystemResources(2) -returns free USER resources.
;The following call returns free space in memory:
KRNL386.EXE: DWORD WINAPI GetFreeSpace(UINT);
;Example1- GetFreeSpace(0) -returns free memory space.
;The following call returns the IA Window instance:
USER.EXE: WORD WINAPI GetWindowWord(HWND, int);
;Example1- GetWindowWord(@_RUN_WND, -6);
;The following call causes a system message beep:
USER.EXE: void WINAPI MessageBeep( WORD );
;Example1- MessageBeep(-1)