By now, I can enum all attached monitors by calling EnumDisplayDevices twice(first calling returns AdapterName, second calling returns MonitorName), and get MonitorNames like:
\\.\DISPLAY1\Monitor0
\\.\DISPLAY1\Monitor1
I tried to enable the switch using ChangeDisplaySettingsEx, but failed. The MonitorName can't be used as the first param of ChangeDisplaySettingsEx, which returns DISP_CHANGE_BADPARAM. Only AdaptorName can work, but that's not what I want. Monitor, not Adapter, is my real concern.
Does that mean Windows API has no function call for Video Output Switch? Since the switching is actually performed by ACPI BIOS & Video Port Driver, can I have other ways to do so?
Code attached...
Thanks for any help!
Lily
Last edited by lily311; March 7th, 2005 at 02:17 AM.
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.