[This is preliminary documentation and subject to change.]
The MONITORINFO structure contains information about a display monitor.
The GetMonitorInfo function stores information in a MONITORINFO structure or a MONITORINFOEX structure.
The MONITORINFO structure is a subset of the MONITORINFOEX structure. The MONITORINFOEX structure adds a string member to contain a name for the display monitor.
typedef struct tagMONITORINFO {
DWORD cbSize;
RECT rcMonitor;
RECT rcWork;
DWORD dwFlags;
} MONITORINFO, *LPMONITORINFO;
Set the cbSize member to sizeof(MONITORINFO) before calling the GetMonitorInfofunction. Doing so lets the function determine the type of structure you are passing to it.
The following flag is defined.
| Value | Meaning |
|---|---|
| MONITORINFOF_PRIMARY | This is the primary display monitor. |
Windows NT: Requires version 5.0 or later.
Windows: Requires Windows 98.
Windows CE: Unsupported.
Header: Declared in winuser.h.
Multiple Display Monitors Overview, Multiple Display Monitors Structures, GetMonitorInfo, MONITORINFOEX