is true, then could you please explain what the szDevice member of the MONITORINFOEX structure is useful for? I too am experiencing a significant issue with windows 7 that was not a problem in Vista or XP. "It was never a design goal to provide a way for applications to label monitors with the same IDs that the screen resolution control panel uses" With all due respect, I find the answers given to the OP by your team a cop-out and frankly nonsensical. Welcome to the All-In-One Code Framework! If you have any feedback, please tell us. If you have any feedback of our support, please contact remember to mark the replies as answers if they help and unmark them if they provide no help. Jialiang Ge MSDN Subscriber Support in Forum You can get your requested info based on these differences. BOOL CALLBACK MyInfoEnumProc( HMONITOR hMonitor, HDC hdcMonitor, LPRECT lprcMonitor, LPARAM dwData ) \0003' Monitor Name: 'Generic PnP Monitor' EnumDisplayMonitors DisplayDevice: \\.\DISPLAY1 DisplayDevice: \\.\DISPLAY2Īs you see from the above test results, StateFlags, DeviceID, and Monitor Name can differentiate the conditions.
0 Comments
Leave a Reply. |