Windows:是否*可能*创建(虚拟)显卡驱动程序?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3752031/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 15:17:03  来源:igfitidea点击:

Windows: Is it *possible* to create a (virtual) video card driver?

windowsvirtualizationwdk

提问by Ian Boyd

i want to create a virtual monitor. The way this would work is that the virtual monitorwould appear in a window on my desktop. As far as Windows knows it is just another monitor.

我想创建一个虚拟监视器。这将起作用的方式是虚拟监视器将出现在我桌面上的窗口中。就 Windows 而言,它只是另一台显示器。

It occurs to me that it would, as a practical matter, have to be done as video card driver (i.e. rather than the video going out a wire to an LCD panel, it would go into another window on the desktop).

我突然想到,作为一个实际问题,它必须作为视频卡驱动程序来完成(即视频不是通过电线连接到 LCD 面板,而是进入桌面上的另一个窗口)。

Does what i'm describing sound, technically, possible? (from a DDK point of view)

从技术上讲,我所描述的声音是否可行?(从DDK的角度来看)

Note:i can't use a virtual pc, because no virtual PC has resolutions high enough for my needs. Also because it's not what i asked for.

注意:我不能使用虚拟 PC,因为没有任何虚拟 PC 的分辨率足以满足我的需要。也因为这不是我所要求的。

Note:My reasons are unimportant, but i can make some up:

注意:我的理由不重要,但我可以补充一些:

采纳答案by Bruno

I'd say it's definitely possible, since that's what virtualization tools do for their guest utilities, but I wouldn't be able to tell you how in details. I'd suggest looking at the VirtualBoxguest driver code as a starting point: http://www.virtualbox.org/browser/trunk/src/VBox/Additions/WINNT/Graphics

我会说这绝对是可能的,因为这就是虚拟化工具为他们的来宾实用程序所做的,但我无法详细告诉你如何。我建议以VirtualBox来宾驱动程序代码为起点:http: //www.virtualbox.org/browser/trunk/src/VBox/Additions/WINNT/Graphics

(This is released under GPL as far as I'm aware.)

(据我所知,这是在 GPL 下发布的。)

回答by Ben Voigt

It's definitely possible, see for example the UltraVNC mirror driver. But I don't know of any virtual video driver that makes source code available.

这绝对是可能的,例如参见 UltraVNC 镜像驱动程序。但我不知道有任何可以提供源代码的虚拟视频驱动程序。

回答by Johnny

I have been searching for something similar and I found a nice solution: spacedesk. You can download it here: http://spacedesk.ph/In windows, it installs an extra monitor, which you can open in a browser or a viewer. Enjoy!

我一直在寻找类似的东西,我找到了一个很好的解决方案:spacedesk。您可以在此处下载:http: //spacedesk.ph/在 Windows 中,它安装了一个额外的监视器,您可以在浏览器或查看器中打开它。享受!

回答by troelskn

Don't know about Windows, but for X (Linux) there is Xvfb (X Virtual Frame Buffer), which is quite a useful thing.

不知道Windows,但对于X(Linux)有Xvfb(X Virtual Frame Buffer),这是一个非常有用的东西。