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

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