public static extern int CreateDesktop(string lpszDesktop, string lpszDevice, ref DEVMODE pDevmode, int dwFlags, int dwDesiredAccess, ref SECURITY_ATTRIBUTES lpsa);
public static extern int ResetDC(HDC hdc, ref DEVMODE lpInitData);
public static extern int CreateIC(string lpDriverName, string lpDeviceName, string lpOutput, ref DEVMODE lpInitData);
public static extern bool EnumDisplaySettings(string deviceName, int modeNum, ref DEVMODE devMode);
public static bool EnumDisplaySettings(string deviceName, ENUM modeNum, ref DEVMODE devMode) { return EnumDisplaySettings(deviceName, (int)modeNum, ref devMode); }
static extern int ChangeDisplaySettings(ref DEVMODE lpDevMode, int flags);