Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than user32, prefix the name with the module name and a period.
private bool MonitorEnumCallBack(IntPtr hMonitor, IntPtr hdcMonitor, ref RECT lprcMonitor, IntPtr dwData)
{
MONITORINFOEX mon_info = new MONITORINFOEX();
mon_info.cbSize = (uint)Marshal.SizeOf(mon_info);
GetMonitorInfo(hMonitor, ref mon_info);
///Monitor info is stored in 'mon_info'
return true;
}
Alternative Managed API:
Consider System.Windows.Forms.Screen.
The GetMonitorInfo API
7/10/2022 10:29:39 AM - -80.79.145.65
Click to read this page
10/14/2011 1:18:53 PM - -87.154.122.228
Click to read this page
10/14/2011 1:19:26 PM - -142.166.174.116
Please edit this page!
Do you have...
helpful tips or sample code to share for using this API in managed code?
corrections to the existing content?
variations of the signature you want to share?
additional languages you want to include?
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).