USB驱动查询USB设备信息
2017-05-26 17:49
597 查看
当USB设备插入时,系统需要查询USB设备信息,会向USB驱动发送相关的查询指令。
通常都是在PNP的IRP中处理,主功能号 IRP_MJ_PNP,子功能号为 IRP_MN_QUERY_ID。
可以查询的类型保存在 Parameters.QueryId.IdType 中,各个信息的定义如下:
typedef enum {
BusQueryDeviceID = 0, // <Enumerator>\<Enumerator-specific device id>
BusQueryHardwareIDs = 1, // Hardware ids
BusQueryCompatibleIDs = 2, // compatible device ids
BusQueryInstanceID = 3, // persistent id for this instance of the device
BusQueryDeviceSerialNumber = 4, // serial number for this device
BusQueryContainerID = 5 // unique id of the device's physical container
} BUS_QUERY_ID_TYPE, *PBUS_QUERY_ID_TYPE;
通常都是在PNP的IRP中处理,主功能号 IRP_MJ_PNP,子功能号为 IRP_MN_QUERY_ID。
可以查询的类型保存在 Parameters.QueryId.IdType 中,各个信息的定义如下:
typedef enum {
BusQueryDeviceID = 0, // <Enumerator>\<Enumerator-specific device id>
BusQueryHardwareIDs = 1, // Hardware ids
BusQueryCompatibleIDs = 2, // compatible device ids
BusQueryInstanceID = 3, // persistent id for this instance of the device
BusQueryDeviceSerialNumber = 4, // serial number for this device
BusQueryContainerID = 5 // unique id of the device's physical container
} BUS_QUERY_ID_TYPE, *PBUS_QUERY_ID_TYPE;
相关文章推荐
- C#:基于WMI查询USB设备信息 及 Android设备厂商VID列表
- c#使用wmi查询usb设备信息示例
- 取USB设备信息-3
- 取USB设备信息
- 【GBT28181开发:SIP协议实践】之设备信息查询
- 【VC】 获取电脑USB设备VID和PID等信息。
- Linux - 如何查看USB设备信息
- 取USB设备信息
- usb由于其配置信息(注册表中的)不完整或已损坏,Windows 无法启动这个硬件设备(代码 19 )
- 打印USB 设备热插拔的字符信息
- EZ-USB 68013 学习笔记--设备信息安装文件CyUSB.inf详细说明
- Windows下USB磁盘开发系列三:枚举系统中U盘、并获取其设备信息
- 操作系统中记录USB移动存储设备型号信息的地点
- C#:基于WMI查询USB设备
- 取USB设备信息
- GB28181 SIP视频监控系列之 设备信息查询
- 在VC中如何获得USB设备的Product ID,Vendor ID等信息
- 在VC中如何获得USB设备的Product ID,Vendor ID等信息
- sysfs目录下的usb设备信息浅析--ft232
- Linux下,查看USB设备信息