_GetMonitorInfo() private method

private _GetMonitorInfo ( IntPtr hMonitor, [ lpmi ) : bool
hMonitor System.IntPtr
lpmi [
return bool
Example #1
0
        public static MONITORINFO GetMonitorInfo(IntPtr hMonitor)
        {
            MONITORINFO monitorinfo = new MONITORINFO();

            if (!NativeMethods._GetMonitorInfo(hMonitor, monitorinfo))
            {
                throw new Win32Exception();
            }
            return(monitorinfo);
        }