gpt4 book ai didi

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

转载 作者:可可西里 更新时间:2023-11-01 10:07:55 24 4
gpt4 key购买 nike

有没有办法让我以编程方式在 Windows 中设置假监视器并从中获取视频流? win32 api 中是否有允许我执行此操作的内容?

谢谢

最佳答案

我认为 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. [...]

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

关于c++ - 模拟一个显示器,在windows上获取视频流,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11133007/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com