MONITORINFOEX

[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; 
 

Members

cbSize
The size, in bytes, of the structure.

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.

rcMonitor
A RECT structure that specifies the display monitor rectangle, expressed in virtual screen coordinates. Note that if the monitor is not the primary display monitor, some of the rectangle's coordinates may be negative values.
rcWork
A RECT structure that specifies the work area rectangle of the display monitor, expressed in virtual screen coordinates. Note that if the monitor is not the primary display monitor, some of the rectangle's coordinates may be negative values.
dwFlags
A set of flags that represent attributes of the display monitor.

The following flag is defined.
Value Meaning
MONITORINFOF_PRIMARY This is the primary display monitor.

szDevice
A string that contains a name for the display monitor.

QuickInfo

  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.

See Also

Multiple Display Monitors Overview, Multiple Display Monitors Structures, GetMonitorInfo, MONITORINFO