检测“克隆模式” 显示设置
如何在 Windows 上不使用 COPP(计算机输出保护协议)或 OPM(输出保护协议)的情况下确定我的显示器是否处于“克隆模式”?
远景解决方案:
hMonitor = MonitorFromWindow (HWND_DESKTOP, MONITOR_DEFAULTTOPRIMARY);
bSuccess = GetNumberOfPhysicalMonitorsFromHMONITOR (hMonitor, &dwMonitorCount);
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);
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我假设您已经尝试过 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.