monitorfromrect (user32)
Last changed: -192.146.1.16

.
Summary

C# Signature:

[DllImport("user32.dll")]
static extern IntPtr MonitorFromRect([In] ref RECT lprc, uint dwFlags);

User-Defined Types:

None.

Notes:

const uint MONITOR_MONITOR_DEFAULTTONULL = 0x00000000;
const uint MONITOR_MONITOR_DEFAULTTOPRIMARY = 0x00000001;
const uint MONITOR_DEFAULTTONEAREST = 0x00000002;

Tips & Tricks:

Consider System.Windows.Forms.Screen class and its FromRectangle.

Sample Code:

Please add some!

Alternative Managed API:

Consider System.Windows.Forms.Screen.

Documentation