Example #1
0
 public static extern int EnumDisplaySettings(
     [MarshalAs(UnmanagedType.LPWStr)]
     string lpszDeviceName,
     int iModeNum,
     ref DEVMODE lpDevMode);
Example #2
0
 internal static extern bool EnumDisplaySettingsEx(
     [MarshalAs(UnmanagedType.LPWStr)]
     string lpszDeviceName,
     int iModeNum,
     ref DEVMODE lpDevMode,
     DisplaySettingsExEnum dwFlags);
Example #3
0
 internal static extern DISP_CHANGE ChangeDisplaySettingsEx(
     string lpszDeviceName,
     ref DEVMODE lpDevMode,
     IntPtr hwnd,
     DisplaySettingsFlags dwflags,
     IntPtr lParam);