[This is preliminary documentation and subject to change.]
The MONITORINFOEX structure contains information about a display monitor.
The GetMonitorInfo function stores information into a MONITORINFOEX structure or a MONITORINFO structure.
The MONITORINFOEX structure is a superset of the MONITORINFO structure. The MONITORINFOEX structure adds a string member to contain a name for the display monitor.
typedef struct tagMONITORINFOEX {
DWORD cbSize;
RECT rcMonitor;
RECT rcWork;
DWORD dwFlags;
TCHAR szDevice[CCHDEVICENAME]
} MONITORINFOEX, *LPMONITORINFOEX;
Set the cbSize member to sizeof(MONITORINFOEX) before calling the GetMonitorInfo function. 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.
Unicode: Defined as Unicode and ANSI structures.
Multiple Display Monitors Overview, Multiple Display Monitors Structures, GetMonitorInfo, MONITORINFO