Windows: Programatically determine if hardware acceleration can be disabled

好久不见. 提交于 2020-01-05 07:13:21

问题


Our application includes a screen capture capability. Some applications use overlay surfaces to display video so we included an option to disable hardware acceleration in order to force those applications into software rendering mode so that we can screen cap them. This worked fine under Windows XP.

However, under Windows 7 it appears, from my research, that very few display drivers support the ability to disable hardware acceleration since the DWM uses DirectX9 rendering. On those sysetms the Display Settings->Advanced Settings->Troubleshoot->Change Settings... button is disabled. But I have heard reports that on some systems that button is enabled.

So, my question is what API (or heuristic) is the windows control panel using to enable/disable the "Change settings..." button so that I can enable/disable a similar control in our application?

来源:https://stackoverflow.com/questions/11834371/windows-programatically-determine-if-hardware-acceleration-can-be-disabled

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