daynix / UsbDk

Usb Drivers Development Kit for Windows
Apache License 2.0
535 stars 142 forks source link

Report superspeed properly on Win7 #64

Closed ybendito closed 5 years ago

ybendito commented 5 years ago

Win7 with USB 3.0 stack might not report superspeed the same way as Win8 does. Use bcdUSB field of device descriptor for that (USB 3.0 device connected to USB 2.x port usually falls to USB 2 compatible configuration). Getting the speed from HUB driver via IOCTL is more complicated.

Signed-off-by: Yuri Benditovich yuri.benditovich@daynix.com