Gets the height (in pixels) of the primary display device.
INT GetPrimScreenWidth()
Gets the width (in pixels) of the primary display device.
INT GetSystemMetrics(
INT nIndex)
Retrieves various system metrics (widths and heights of display elements) and system configuration settings. All dimensions retrieved by GetSystemMetrics are in pixels.