win32api.ChangeDisplaySettingsEx

int = ChangeDisplaySettingsEx(DeviceName, DevMode , Flags )

Changes video mode for specified display

Parameters

DeviceName=None : str

Name of device as returned by win32api::EnumDisplayDevices, use None for default display device

DevMode=None : PyDEVMODE

A PyDEVMODE object as returned from win32api::EnumDisplaySettings, or None to reset to default settings from registry

Flags=0 : int

One of the win32con.CDS_* constants, or 0

Comments

Accepts keyword arguments

Return Value

Returns DISP_CHANGE_SUCCESSFUL on success, or one of the DISP_CHANGE_* error constants on failure