简体   繁体   English

如何使用不属于桌面的显示器(Windows 7)

[英]How to use a monitor which is not part of desktop (Windows 7)

I would like to use a monitor which is actually marked "disconnected" in the windows control panel under "Change display settings".我想使用在“更改显示设置”下的 Windows 控制面板中实际标记为“已断开连接”的显示器。 (I do NOT mean a physically disconnected monitor.) (我不是指物理断开的显示器。)

I know how to add a second monitor in Windows and make it part of desktop.我知道如何在 Windows 中添加第二台显示器并使其成为桌面的一部分。 I also know how to make my application run on a primary or on secondary monitor when they are part of desktop.当我的应用程序是桌面的一部分时,我也知道如何让我的应用程序在主显示器或辅助显示器上运行。

I have a piece of equipment attached to the PC which has a touch screen on it.我有一个连接到 PC 的设备,上面有一个触摸屏。 The touchscreen is connected to the PC over USB looking as an ordinary USB-Monitor and I can make it part of my Windows desktop.触摸屏通过 USB 连接到 PC,看起来就像一个普通的 USB 显示器,我可以让它成为我 Windows 桌面的一部分。 But that is not what I want.但这不是我想要的。

What I would like to do is make sure that only one special application can run on this monitor.我想做的是确保只有一个特殊的应用程序可以在这台显示器上运行。 I also do not want to have a windows desktop on it because than the user could move any window to it which is not what I want.我也不想在它上面有一个 Windows 桌面,因为用户可以将任何窗口移到它上面,这不是我想要的。 The idea behind all this is to use the touch screen to have an application on it which can control this external piece of equipment.这一切背后的想法是使用触摸屏在其上安装一个可以控制这个外部设备的应用程序。 The user would only have to run the PC but not to login.用户只需运行 PC 而无需登录。 I was thinking about starting the app from a windows service before the windows desktop is loaded.我正在考虑在加载 Windows 桌面之前从 Windows 服务启动应用程序。 And once the user logs in I do not want him to be able to use the touch screen for anything else except this special application.一旦用户登录,我不希望他能够将触摸屏用于除此特殊应用程序之外的任何其他内容。 That is why the touch screen must not be part of the windows desktop but ”deactivated”.这就是为什么触摸屏不能成为 Windows 桌面的一部分,而是“停用”的原因。

I am using .我在用 。 NET 4.0 and C# for my application, but I will use C++ or whatever comes handy. NET 4.0 和 C# 用于我的应用程序,但我将使用 C++ 或任何方便的东西。

Any help or idea is appreciated.任何帮助或想法表示赞赏。 Thank you!谢谢!

It seems WDDM does not support independent displays any more. WDDM 似乎不再支持独立显示了。 Here are a few links in case somebody wishes to take a look for himself:以下是一些链接,以防有人希望自己看看:

  1. ( old MSDN link ) = /windows/win32/gdi/multiple-display-monitors 旧 MSDN 链接)= /windows/win32/gdi/multiple-display-monitors

  2. ( old MSDN link ) = /windows/win32/gdi/using-multiple-monitors-as-independent-displays 旧 MSDN 链接)= /windows/win32/gdi/using-multiple-monitors-as-independent-displays

The important part is this note from the second link:重要的部分是来自第二个链接的注释:

ⓘ Note ⓘ 注意

Using other monitors as independent displays isn't supported on drivers that are implemented to the Windows Display Driver Model (WDDM).实施到 Windows 显示驱动程序模型 (WDDM) 的驱动程序不支持将其他显示器用作独立显示器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM