如何获取特定设备使用的内存范围与WMI(Windows Management Instrumentation) [英] How to get memory range used by a specific device with WMI (Windows Management Instrumentation)

查看:600
本文介绍了如何获取特定设备使用的内存范围与WMI(Windows Management Instrumentation)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何获取特定设备(特别是内存范围)所使用的资源,知道其名称和/或DeviceID和/或Pci总线编号,设备编号和功能编号?
例如,我想知道英特尔AHCI控制器使用的内存范围。使用查询SELECT * FROM Win32_IDEController WHERE Name LIKE\%ahci%\我可以得到一些信息,如完整的名称,设备ID和其他信息。然后我认为使用完整的名称或设备ID,我可以使用类Win32_DeviceMemoryAddress选择设备使用的内存范围。然而,这个类没有任何有用的属性,我可以设置来获得与AHCI控制器相关的内存范围。

How can I get the resources used by a specific device (in particular, the memory range) of a specific device knowing it's name and/or DeviceID and/or the Pci bus number, Device number and function number? For example, I want to know what memory range an Intel AHCI Controller uses. With the query "SELECT * FROM Win32_IDEController WHERE Name LIKE\"%ahci%\"" I can get some info like the complete name, device id, and other informations. Then I thought that using the complete name or device id I could select the memory range used by the device using the class "Win32_DeviceMemoryAddress". However, this class does not have any useful attributes that I can set to get the memory range associated with the AHCI controller. Name, Caption and description all return a string with the starting address and ending address.

提前感谢。

推荐答案

不知道如何使用 WMI ,但在此链接,在获取设备资源下,作者声称 CM_Get_Next_Res_Des 提供此信息。到那里,虽然,不是简单的...这正是我想要完成的,现在...将有助于进一步的细节,当我到那里...

Don't know how to do it with WMI, but in this link, under "Get Device Resource", the author claims that CM_Get_Next_Res_Des provides this information. Getting there, though, is not simple... that's exactly what I'm trying to accomplish right now... will contribute further details when I get there...

这篇关于如何获取特定设备使用的内存范围与WMI(Windows Management Instrumentation)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆