问题描述
如何在不使用 Windows 上的 COPP(计算机输出保护协议)或 OPM(输出保护协议)的情况下确定我的显示器是否处于克隆模式"?
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 解决方案:
Vista solution:
hMonitor = MonitorFromWindow (HWND_DESKTOP, MONITOR_DEFAULTTOPRIMARY);
bSuccess = GetNumberOfPhysicalMonitorsFromHMONITOR (hMonitor, &dwMonitorCount);
推荐答案
我假设您已经尝试过 EnumDisplayMonitors() 但它没有用.因此,如果这为每组克隆显示返回单个 HMONITOR,您可以将这组结果与 EnumDisplayDevices() 的结果进行比较.EnumDisplayDevices() 返回的设备附加到桌面但不是 EnumDisplayMonitors() 返回的设备应该是克隆.
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.
这篇关于检测“克隆模式"显示设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!