The Windows GetSystemMetrics function call retrieves information about the Windows system, such as the number of mouse buttons and the height and width of the display. In the module from which the sample code was drawn, the GetSystemMetrics function was exported from User32.dll, which was inserted under the program module's Libraries submodule as shown below.
This sample code shows how to use GetSytemMetrics to test the dimensions of a screen. If the screen has a resolution lower than 640x480, the value of TestStatus is set to FAIL.
if User32.GetSystemMetrics(SM_CXSCREEN)<640
TestStatus=FAIL ! less than a VGA!!!
endif
! note User32. is optional
if User32.GetSystemMetrics(SM_CYSCREEN)<480
TestStatus=FAIL ! less than a VGA!!!
endif