简体   繁体   English

模拟一个显示器,在windows上获取视频流

[英]Simulate a monitor and get a video stream on windows

Is there a way for me to programatically set up a fake monitor in windows and get a video stream from it?有没有办法让我以编程方式在 Windows 中设置一个假监视器并从中获取视频流? Is there something in the win32 api that will allow me to do this? win32 api 中是否有允许我执行此操作的内容?

Thanks谢谢

I think Windows desktop objects are your answer.我认为 Windows 桌面对象就是您的答案。 Here's an example of an application that uses them:以下是使用它们的应用程序示例:

Unlike other virtual desktop utilities that implement their desktops by showing the windows that are active on a desktop and hiding the rest, Sysinternals Desktops uses a Windows desktop object for each desktop.与其他通过显示桌面上的活动窗口并隐藏其余窗口来实现其桌面的虚拟桌面实用程序不同,Sysinternals Desktops 为每个桌面使用一个 Windows 桌面对象。 Application windows are bound to a desktop object when they are created, so Windows maintains the connection between windows and desktops and knows which ones to show when you switch a desktop.应用程序窗口在创建时绑定到桌面对象,因此 Windows 保持窗口和桌面之间的连接,并知道在切换桌面时显示哪些。 [...] [...]

Desktops reliance on Windows desktop objects means that it cannot provide some of the functionality of other virtual desktop utilities, however.然而,桌面对 Windows 桌面对象的依赖意味着它无法提供其他虚拟桌面实用程序的某些功能。 For example, Windows doesn't provide a way to move a window from one desktop object to another, and because a separate Explorer process must run on each desktop to provide a taskbar and start menu, most tray applications are only visible on the first desktop.例如,Windows 不提供将窗口从一个桌面对象移动到另一个桌面对象的方法,并且由于必须在每个桌面上运行一个单独的资源管理器进程以提供任务栏和开始菜单,因此大多数托盘应用程序仅在第一个桌面上可见. Further, there is no way to delete a desktop object, so Desktops does not provide a way to close a desktop, because that would result in orphaned windows and processes.此外,无法删除桌面对象,因此 Desktops 不提供关闭桌面的方法,因为这会导致孤立的窗口和进程。 The recommended way to exit Desktops is therefore to logoff.因此,推荐的退出 Desktops 的方法是注销。

http://technet.microsoft.com/en-us/sysinternals/cc817881.aspx http://technet.microsoft.com/en-us/sysinternals/cc817881.aspx

There is no way to emulate monitor .无法模拟monitor

May be desktop functions match your criteria?桌面功能可能符合您的标准吗? Look to CreateDesktop / SwitchDesktop .查看CreateDesktop / SwitchDesktop

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

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