使用C ++提取GPU信息(希望WMI?) [英] Extracting GPU information using C++ (and hopefully WMI?)
问题描述
我想知道如何使用C ++提取GPU。然而,我感兴趣的信息不是从Win32_VideoController类(ahh ..的可用的数据,墨菲的编程规则)。具体来说,我对(内存和着色器时钟)感兴趣。
I'd like to know how to extract GPU using C++. However, the information that I'm interested in is not the data that is available from the Win32_VideoController class (ahh.. the Murphy's Laws of Programming). Specifically, I'm interested in the (Memory and Shader clocks).
我想知道如何获得这些信息。
I'd like to know how to get at that information.
我想避免DirectX查询,如果可能的话,由于我缺乏知识(实际上,零:P)。然而,如果这是最简单的方法,那么我愿意拍它。
I'd like to avoid DirectX querying if possible, due to my lack of knowledge (in fact, zero :P) about it. However, should that be the easiest way, then I'm willing to take a shot at it. Any links/tutorials would be greatly appreciated.
感谢
推荐答案
我想你想使用Windows附带的SetupAPI设施。它允许您枚举设备和驱动程序。我用它来枚举GPU硬件,驱动程序版本等。以下是一个链接:
I think you want to use the SetupAPI facility that comes with Windows. It lets you enumerate devices and drivers. I've used it to enumerate GPU hardware, driver versions, etc. Here's a link:
http://msdn.microsoft.com/en-us/library/ms792983.aspx
这篇关于使用C ++提取GPU信息(希望WMI?)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!