Click to See Complete Forum and Search --> : How to identify if my system is in Extended Desktop?


indranil_m
December 12th, 2006, 10:33 PM
Hi,

I want to identify if my system is running on extended desktop, and if yes, what are the devices in DISPLAY1 and DISPLAY2? Is there any OS API for that? I tried using EnumDisplaySettingsEx with ENUM_CURRENT_SETTINGS flag, but that gave me only the current mode in DISPLAY1 and DISPLAY2, but really does not say if the system is really on Extended desktop currently (if I set Extended desktop once and get out of it, it still passes for DISPLAY2 sometimes :(). Also it does not say which display device is attached to DISPLAY1 and which one to DISPLAY2.

I am making the calls as below:
EnumDisplaySettings(_T("\\\\.\\Display1"), ENUM_CURRENT_SETTINGS, (DEVMODE*)&dmTemp)

EnumDisplaySettings(_T("\\\\.\\Display2"), ENUM_CURRENT_SETTINGS, (DEVMODE*)&dmTemp)

Many thanks in advance...