I am writing an win32 application for a multiple monitor system, its a
very basic application and does the following:
1.checks for all the modes supported on the first display device
2.checks for all the modes supported on the second display device
inorder to check the modes supported by the display device i have a
method called CheckSingleMonitor(HMONITOR) within which i call
GetMoniorInfo.
now i want to write another test by which i can disable the first
device and test for all the modes supported on the second
display device and vica versa.
I have been succesfull to disable the device and enable it back.
The problem which i have encountered is that once the first monitor is
succesfully disabled i call checkSingleMonitor with the Handle of the
second monitor
now when i enter the method CheckSingleMonitor the GetMonitorInfo call
for the second display device fails
i have no idea why GetMonitorInfo fails,
The workaround for this i found till now was to call ENUMMONITORPROC
instead of CheckSingleMonitor after disbaling the first monitor
but this works for just one of the monitors and GetMonitorInfo fails
again for the second monitor.i repeat i am enabe the device after
disabling it.
any suggestions.
Thanks & Regards,
Nitin Kapoor