C# Capturing A Fullscreen Game With SlimDX

时间秒杀一切 提交于 2019-12-04 15:39:42

When a Direct3D device enters fullscreen mode, it's granted exclusive access to the video card. From the MSDN documentation:

when a Direct3D object assumes exclusive mode, all devices other than the one that went full-screen are placed in lost state.

I don't think there's any way to make your technique work for taking screenshots of another application after it goes into fullscreen exclusive mode. My understanding is that other applications which retrieve the state of fullscreen surfaces (i.e. video recording programs and the like) do so by injecting their own code into the Direct3D libraries themselves. This is a non-trivial endeavor; you can try searching for "directx code injection" or something similar if you're interested in going down that road.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!