Skip to content

Latest commit

 

History

History
116 lines (87 loc) · 3.83 KB

ns-winuser-monitorinfo.md

File metadata and controls

116 lines (87 loc) · 3.83 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NS:winuser.tagMONITORINFO
MONITORINFO (winuser.h)
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.
*LPMONITORINFO
LPMONITORINFO
LPMONITORINFO structure pointer [Windows GDI]
MONITORINFO
MONITORINFO structure [Windows GDI]
_win32_MONITORINFO_str
gdi.monitorinfo
tagMONITORINFO
winuser/LPMONITORINFO
winuser/MONITORINFO
gdi\monitorinfo.htm
gdi
ca8ec86f-69ba-4cf8-a867-67182a3d630d
12/05/2018
*LPMONITORINFO, LPMONITORINFO, LPMONITORINFO structure pointer [Windows GDI], MONITORINFO, MONITORINFO structure [Windows GDI], _win32_MONITORINFO_str, gdi.monitorinfo, tagMONITORINFO, winuser/LPMONITORINFO, winuser/MONITORINFO
winuser.h
Windows.h
Windows
Windows 2000 Professional [desktop apps only]
Windows 2000 Server [desktop apps only]
Windows
MONITORINFO, *LPMONITORINFO
19H1
tagMONITORINFO
winuser/tagMONITORINFO
LPMONITORINFO
winuser/LPMONITORINFO
MONITORINFO
winuser/MONITORINFO
c++
APIRef
kbSyntax
HeaderDef
Winuser.h
MONITORINFO

MONITORINFO structure

-description

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.

-struct-fields

-field cbSize

The size of the structure, in bytes.

Set this member to sizeof ( MONITORINFO ) before calling the GetMonitorInfo function. Doing so lets the function determine the type of structure you are passing to it.

-field 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.

-field 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.

-field 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.

-see-also

GetMonitorInfo

MONITORINFOEX

Multiple Display Monitors Overview

Multiple Display Monitors Structures