public static WinNative.MonitorInfoEx FetchMonitorInfo(IntPtr handle) { WinNative.MonitorInfoEx info = new WinNative.MonitorInfoEx(); info.cbSize = (int)Marshal.SizeOf(info); WinNative.GetMonitorInfo(handle, ref info); return(info); }