Как программно получить номера мониторов из диалогового окна «Разрешение экрана» в win7?

Когда вы нажимаете кнопку «Идентифицировать» в диалоговом окне «Разрешение экрана», Windows отображает большие белые цифры на каждом мониторе. Их было легко найти программно вместе с координатами монитора в Windows XP (с EnumDisplayDevices), но в Windows 7 он сломался. Как я могу это сделать?

EnumDisplayDevices and GetMonitorInfo are not reliable anymore for that purpose in Windows 7. I tried GetMonitorInfo and then extracting monitor number from MONITORINFOEX.szDevice (I.E. \.\Display2) with no success. Another guy did that too two years ago and claimed that getMonitorInfo has a bug. This bug was marked as fixed by Microsoft without any comments but it still can be reproduced on a win7 machine having latest updates. (Btw, can anybody tell me - maybe this bug is absent on win8 ?) I tried QueryDisplayConfig from new CCD API but didn't find needed info.

Кто-нибудь знает путь?

Ответы на вопрос(2)

Ваш ответ на вопрос