Detect “Clone Mode” display setup

旧街凉风 提交于 2019-12-08 12:00:58

问题


How can I determine if my displays are in "Clone Mode" without using either COPP (Computer Output Protection Protocol) or OPM (Output Protection Protocol) on Windows?

Vista solution:

hMonitor = MonitorFromWindow (HWND_DESKTOP, MONITOR_DEFAULTTOPRIMARY);
bSuccess = GetNumberOfPhysicalMonitorsFromHMONITOR (hMonitor,  &dwMonitorCount);   

回答1:


I assume you've already tried EnumDisplayMonitors() and it didn't work. So if that returns a single HMONITOR for each set of cloned displays, you could compare this set of results to the result of EnumDisplayDevices(). Devices returned by EnumDisplayDevices() that are attached to the desktop but aren't returned by EnumDisplayMonitors() should be clones.



来源:https://stackoverflow.com/questions/80103/detect-clone-mode-display-setup

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!