Esempio n. 1
0
 // helper for creating an initialized DEVMODE structure
 public static DEVMODE CreateDevmode()
 {
     DEVMODE dm = new DEVMODE();
     dm.dmDeviceName = new String(new char[32]);
     dm.dmFormName = new String(new char[32]);
     dm.dmSize = (short)Marshal.SizeOf(dm);
     return dm;
 }
Esempio n. 2
0
 public static extern int EnumDisplaySettings(string lpszDeviceName, int iModeNum, ref DEVMODE lpDevMode);
Esempio n. 3
0
 public static extern int ChangeDisplaySettings(ref DEVMODE lpDevMode, int dwFlags);