Microsoft Windows CE 3.0  

GetMonitorInfo

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

This function retrieves information about a display monitor.

BOOL GetMonitorInfo(
HMONITOR
hMonitor
,
LPMONITORINFO
lpmi

);

Parameters

hMonitor
[in] Handle to the display monitor of interest.
lpmi
[out] Pointer to a MONITORINFOstructure or MONITORINFOEXstructure that receives information about the specified display monitor.

Return Values

TRUE indicates success. FALSE indicates failure. To get extended error information, call GetLastError.

Remarks

The GetMonitorInfofunction can retrieve information about a display monitor in either a MONOITORINFOstructure or MONITORINFOEXstructure. MONITORINFOEXis a superset of MONITORINFO. MONITORINFOEXhas one additional member: a string that contains a name for the display monitor. Most applications do not need to use a display monitor name, and can use fewer bytes by using MONITORINFO.

You must set the cbSizemember of either structure to the value that you obtain by calling the sizeofoperator for MONITORINFOor MONITORINFOEXbefore you call GetMonitorInfo. Setting cbSizeallows GetMonitorInfoto determine the type of structure you are passing to GetMonitorInfo.

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 4.0 and later Winuser.h Windows.h User32.lib
Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

MONITORINFO, MONITORINFOEX