API to Switch between Cloned and Extended Desktop (e.g. ChangeDisplaySettingsEx)
I'm trying to figure out howwith a multi-monitor system that uses the Intel Graphics Chipset to switch between Cloned Desktop and Extended Desktop using either MicrosoftWin32 APIs or any alternative offered by Intel drivers/SDK.
When a second monitor is connected it automatically installs in Cloned Desktopmode. I need a way to change this within my application. Reason being, it's used in aDigital Signage scenario - i.e. no keyboard/mouse input. Also, since around v7 of the Intel Graphics drivers, the Intel Graphics Control panel requires .NET Framework 3.5sp1 just to open (=bad =bad =bad) so for the moment I'm using v6 of the drivers.
When I enumerate the available display devices using the Win32 API EnumDisplayDevices, the DISPLAY_DEVICE.DeviceString(s) appear as follows:
When the Monitors are in Extended mode, they appear as follows:
I've read on various forums (MSDN etc)ChangeDisplaySettingsEx should be able to do this, butI can't get it to work. It's been suggested that perhaps the Intel drivers aren't suporting this.