使用SetupDiEnumDeviceInfo获取GPU时钟速度
我之前发布了一个关于获取 GPU 时钟速度的问题,但我猜该线程似乎已经得到回答,因为有人已经回复了它。
你们的一位成员建议我尝试使用 SetupDiEnumDeviceInfo 提取 GPU 时钟速度。
但是,我查看了一些示例,例如: http://www.codeproject .com/KB/system/DevMgr.aspx
似乎没有显示有关时钟速度的信息。
如果可能的话,有人可以详细说明如何实现这一目标吗?
再次感谢
I posted a question earlier regarding obtaining GPU clock speeds, but I guess the thread appeared as already answered since someone had replied to it.
I'd been advised by one of your members to try extracting GPU clock speeds using SetupDiEnumDeviceInfo.
However, I looked around at some examples, like this one: http://www.codeproject.com/KB/system/DevMgr.aspx
and nothing seemed to be displayed about the clock speed.
Could someone please elaborate on how to achieve this, if at all possible?
Thanks again
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要查看这篇 msdn 文章:
http://msdn.microsoft。 com/en-us/library/bb742655.aspx
具体来说,请按照下列步骤操作:
将 PropertyBuffer 设置为指向接收请求的属性值的 BYTE 类型缓冲区的指针。
将 PropertyBufferSize 设置为 PropertyBuffer 缓冲区的大小(以字节为单位)。对SetupDiGetDeviceRegistryProperty 的第一次调用在*RequiredSize 中检索了PropertyBuffer 缓冲区所需的大小。
此链接显示了如何获得调用 SetupDiGetDeviceRegistryProperty 所需的结构。
http://www.pinvoke.net/default.aspx/setupapi/SetupDiEnumDeviceInfo。 html
You will want to check out this msdn article:
http://msdn.microsoft.com/en-us/library/bb742655.aspx
Specifically, follow these steps:
Set PropertyBuffer to a pointer to a BYTE-typed buffer that receives the requested property value.
Set PropertyBufferSize to the the size, in bytes, of the PropertyBuffer buffer. The first call to SetupDiGetDeviceRegistryProperty retrieved the required size of the PropertyBuffer buffer in *RequiredSize.
This link shows how to get to the point where you've got the required strucutres to call SetupDiGetDeviceRegistryProperty.
http://www.pinvoke.net/default.aspx/setupapi/SetupDiEnumDeviceInfo.html