Esempio n. 1
0
 internal static extern int EnumDisplayDevicesW(string lpDevice, int iDevNum, ref DisplayDevice lpDisplayDevice, int dwFlags);
Esempio n. 2
0
        public ReturnCodes Execute(DisplayDevice device, DevMode mode)
        {
            IntPtr ptr = new IntPtr();

            return(NativeMethods.ChangeDisplaySettingsEx(device.DeviceName, ref mode, ptr, 0, ptr));
        }