public static extern int ChangeDisplaySettings(ref DEVMODE devMode, int flags);
static extern int EnumDisplaySettings(string deviceName, int modeNum, ref DEVMODE devMode);
public static extern int ChangeDisplaySettings(ref DEVMODE devMode, int flags);
static extern int EnumDisplaySettings(string deviceName, int modeNum, ref DEVMODE devMode);