Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "monitorinfo" in [All]

user32

.

        MonitorInfo mi = new MonitorInfo();

.

        bool success = GetMonitorInfo(hMonitor, ref mi);

.
Summary
.

static extern bool GetMonitorInfo(IntPtr hMonitor, ref MONITORINFOEX lpmi);

.

static extern bool GetMonitorInfo(IntPtr hMonitor, ref MONITORINFO lpmi);

.

MONITORINFOEX

.

MONITORINFO

.

    MONITORINFOEX mon_info = new MONITORINFOEX();

.

    GetMonitorInfo(hMonitor, ref mon_info);

.
Documentation
[GetMonitorInfo] on MSDN
.

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.

.

    /// 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

.

    internal struct MonitorInfoEx

.

    /// The size, in bytes, of the structure. Set this member to sizeof(MONITORINFOEX) (72) before calling the GetMonitorInfo function.

.

    ///   1 : MONITORINFOF_PRIMARY

.

    /// and so can save some bytes by using a MONITORINFO structure.

.

If the monitor is the primary monitor the flag will be set too MONITORINFOF_PRIMARY. The declaration for MONITORINFOF_PRIMARY is

.

const uint MONITORINFOF_PRIMARY = 1;

.

Set cbSize to 104 before using MonitorInfoEx

.
Documentation
[MONITORINFOEX] on MSDN
.

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.

.

    /// 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

.

    internal struct MonitorInfoEx

.

    /// The size, in bytes, of the structure. Set this member to sizeof(MONITORINFOEX) (72) before calling the GetMonitorInfo function.

.

    ///   1 : MONITORINFOF_PRIMARY

.

    /// and so can save some bytes by using a MONITORINFO structure.

.

If the monitor is the primary monitor the flag will be set too MONITORINFOF_PRIMARY. The declaration for MONITORINFOF_PRIMARY is

.

const uint MONITORINFOF_PRIMARY = 1;

.

Set cbSize to 72 before using MonitorInfoEx

.
Documentation
[MONITORINFOEX] on MSDN

shell32

.

///         working area available to your application—, use the GetMonitorInfo function.


 
Access PInvoke.net directly from VS: