你的usb设备装driver了?driver注册设备的时候是指定为什么设备?
解决方案 »
- 请问怎么样判断鼠标移动时候.光标是否在该圆内
- 简单程度导致 Run-Time Check Failure #2 -
- 为什么在DLL中,AVICap类的创建窗口capCreateCaptureWindow函数,没有生成句柄,程序是编译OK的,问题在哪?
- sql 报错“3121 ,3149,未指定错误”,什么意思啊!!!
- 对象和实例的区别?
- vc多语言的实现问题,请教各位!!!!!!!!!!!
- 有谁知道,netmeeting中的自动接收呼叫怎么实现!高分!!!
- 在win2000下如何对串口进行读写?安全描述符是一个什么概念?
- 使用RegCreateKey函数创建一个注册表,为什么找不到
- win10上如何下载并安装visual c++
- 求助
- Dll问题!
Device Descriptor:
bcdUSB: 0x0110
bDeviceClass: 0x00
bDeviceSubClass: 0x00
bDeviceProtocol: 0x00
bMaxPacketSize0: 0x08 (8)
idVendor: 0x096E
idProduct: 0x0302
bcdDevice: 0x010A
iManufacturer: 0x01
iProduct: 0x02
iSerialNumber: 0x00
bNumConfigurations: 0x01ConnectionStatus: DeviceConnected
Current Config Value: 0x01
Device Bus Speed: Low
Device Address: 0x01
Open Pipes: 0
Device Descriptor:
bcdUSB: 0x0200
bDeviceClass: 0x00
bDeviceSubClass: 0x00
bDeviceProtocol: 0x00
bMaxPacketSize0: 0x08 (8)
idVendor: 0x046D (Logitech Inc.)
idProduct: 0xC019
bcdDevice: 0x4301
iManufacturer: 0x01
iProduct: 0x02
iSerialNumber: 0x00
bNumConfigurations: 0x01ConnectionStatus: DeviceConnected
Current Config Value: 0x01
Device Bus Speed: Low
Device Address: 0x01
Open Pipes: 1Endpoint Descriptor:
bEndpointAddress: 0x81
Transfer Type: Interrupt
wMaxPacketSize: 0x0005 (5)
bInterval: 0x0A
这个信息应该比较全了,除了以下三项:
bDeviceClass: 0x00
bDeviceSubClass: 0x00
bDeviceProtocol:
#define DBT_DEVNODES_CHANGED 0x0007WM_DEVICECHANGE
The WM_DEVICECHANGE device message notifies an application or device driver of a change to the hardware configuration of a device or the computer.Event = (UINT) wParam;
dwData = (DWORD) lParam;7代表的是:
/*
* Message = WM_DEVICECHANGE
* wParam = DBT_DEVNODES_CHANGED
* lParam = 0
*
* send when configmg finished a process tree batch. Some devnodes
* may have been added or removed. This is used by ring3 people which
* need to be refreshed whenever any devnode changed occur (like
* device manager). People specific to certain devices should use
* DBT_DEVICE* instead.
*/