MONITORINFOEXA structure (winuser.h)
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.
Syntax
typedef struct tagMONITORINFOEXA : tagMONITORINFO {
CHAR szDevice[CCHDEVICENAME];
} MONITORINFOEXA, *LPMONITORINFOEXA;
Inheritance
The MONITORINFOEXA structure implements tagMONITORINFO.
Members
szDevice[CCHDEVICENAME]
A string that specifies the device name of the monitor being used. Most applications have no use for a display monitor name, and so can save some bytes by using a MONITORINFO structure.
Remarks
Note
The winuser.h header defines MONITORINFOEX as an alias that automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that is not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Header | winuser.h (include Windows.h) |