介绍一个梅举设备信息的DDK函数:SetupDiGetClassDevs
来源:互联网 发布:linux kill 名称 编辑:程序博客网 时间:2024/05/16 16:07
SetupDiGetClassDevs
HDEVINFO
SetupDiGetClassDevs(
IN PGUID ClassGuid, /* optional */
IN PCTSTR Enumerator, /* optional */
IN HWND hwndParent, /* optional */
IN DWORD Flags
);
SetupDiGetClassDevs returns a device information set that contains all installed devices of a specified class.
获取一个指定类别或全部类别的所有已安装设备的信息
Parameters
ClassGuid
Supplies a pointer to the class GUID to use when creating the list of devices. If the DIGCF_ALLCLASSES flag is set, this parameter is ignored and the resulting list contains all installed classes.
一个特定类别GUID(需要查询注册表)的指针,如果设置了DIGCF_ALLCLASSES标记,该参数备忽略,将返回所有类别的设备信息表
Enumerator
Supplies the name of the key under the Enum registry branch that contains device instances for which information is to be retrieved. If this parameter is not specified, device information is retrieved for all device instances in the entire Enum tree.
过滤梅举的内容:如:PCI则只显示PCI设备,
hwndParent
Supplies the handle of the top-level window to be used for any user interface relating to the members of this set.
用于关联到集合成员中的用户接口的顶层窗口句柄
Flags
Supplies control options used in building the device information set. Can be one of the following values:
建立设备信息表的控制选项,可以是下列值
DIGCF_PRESENT
Return only devices that are currently present. (只列出当前存在的设备信息)
DIGCF_ALLCLASSES
Return a list of installed devices for all classes. If this flag is set, the ClassGuid parameter is ignored. (列出所有类别的一安装的设备表,如果设置了此值,则指定的类别将备忽略)
DIGCF_PROFILE
Return only devices that are a part of the current hardware profile. (只返回当前硬件概况部分)
Return Value
If the function succeeds, it returns a handle to a device information set containing all installed devices matching the specified parameters.
如成功,返回包含所有与指定参数匹配的已经安装设备信息句柄
If the function fails, it returns INVALID_HANDLE_VALUE. To get extended error information, call GetLastError.
如失败则返回INVALID_HANDLE_VALUE
- 介绍一个梅举设备信息的DDK函数:SetupDiGetClassDevs
- 梅举设备信息的DDK函数
- SetupDiGetClassDevs-使用SetupDi系列函数进行设备信息的管理
- SetupDiGetClassDevs介绍
- 【VC】 关于SetupDiGetClassDevs函数的使用。
- 一个简单的driverstudio+DDK的虚拟设备驱动程序
- 用SetupDiGetClassDevs枚举设备
- 用SetupDiGetClassDevs枚举设备
- 用SetupDiGetClassDevs枚举设备
- 举一个函数说明C++里的 const
- SetupDiGetClassDevs函数 ,驱动开发
- SetupDiGetClassDevs函数详解
- SetupDiGetClassDevs
- SetupDiGetClassDevs
- DDK编译的程序增加版本信息
- SetupDiGetClassDevs SetupDiEnumDeviceInfo SetupDiGetDeviceRegistryProperty 枚举设备手机
- TelephonyManager的介绍 & Android获取SIM卡信息、设备信息
- DDK怎么生成一个随机的数字
- Win32 SDK注册表操作——RegOpenKeyEx
- MyDesk 2.0编程入门
- RegQueryValueEx
- 关于以后的几点想法。。。。。。。。。
- 关于大学的任务(作者:梦幻尤里)
- 介绍一个梅举设备信息的DDK函数:SetupDiGetClassDevs
- 由学习C语言想到的大学计算机教育(作者:梦幻尤里)
- NHibernate简介
- 体育课引出的感想(作者:梦幻尤里)
- 学习要买好书(作者:梦幻尤里)
- C++学习
- 经典解释监视器和对象锁
- 免费恶意软件清除工具Malware Destroyer
- 什么是SSL?什么是SET?