模拟监视器并在Windows上获取视频流 [英] Simulate a monitor and get a video stream on windows

查看:501
本文介绍了模拟监视器并在Windows上获取视频流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法让我在Windows中编程设置一个假的监视器,并从中获取视频流?

Is there a way for me to programatically set up a fake monitor in windows and get a video stream from it? Is there something in the win32 api that will allow me to do this?

感谢

推荐答案

我认为Windows桌面对象是你的答案。下面是一个使用它们的应用程序示例:

I think Windows desktop objects are your answer. Here's an example of an application that uses them:


与其他虚拟桌面实用程序不同,通过显示活动窗口桌面和隐藏其余,Sysinternals桌面为每个桌面使用Windows桌面对象。应用程序窗口在创建时绑定到桌面对象,因此Windows会维护Windows和桌面之间的连接,并知道在切换桌面时显示哪些窗口。 [...]

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. 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桌面对象的依赖意味着它不能提供其他虚拟桌面实用程序的一些功能。例如,Windows不提供将窗口从一个桌面对象移动到另一个桌面对象的方法,并且因为单独的Explorer进程必须在每个桌面上运行以提供任务栏和开始菜单,大多数托盘应用程序只在第一个桌面上可见。此外,没有办法删除桌面对象,因此Desktops不提供关闭桌面的方法,因为这将导致孤立的窗口和进程。推荐退出桌面的方式是注销。

Desktops reliance on Windows desktop objects means that it cannot provide some of the functionality of other virtual desktop utilities, however. 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. 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. The recommended way to exit Desktops is therefore to logoff.

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

这篇关于模拟监视器并在Windows上获取视频流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆