How can I detect USB 2.0 ?

Hi,
How can I detect programmatically, if a computer support USB 2.0 from user mode or kernel mode ?

If you are writing a usb client driver, you can find out if your device is running at high speed by sending a IRP_MN_QUERY_INTERFACE irp for the USB_BUS_INTERFACE_USBDI_V1 structure, the interface GUID is USB_BUS_INTERFACE_USBDI_GUID.? You then call the IsDeviceHighSpeed function returned to you.?
?
If you just want the rev of the controller, query for the USB_BUS_INTERFACE_USBDI_V0 version of the interface and call the returned GetUSBDIVersion function, USBD_VERSION_INFORMATION::Supported_USB_Version will contain the supported spec version of the controller encoded as BCD
?
D
?
This posting is provided “AS IS” with no warranties, and confers no rights

-----Original Message-----
From: osmlist [mailto:xxxxx@hotmail.com]
Sent: Sunday, February 09, 2003 8:19 AM
To: NT Developers Interest List
Subject: [ntdev] How can I detect USB 2.0 ?
?
Hi,
How can I detect programmatically, if?a computer support USB 2.0 from user mode or kernel mode ?

You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com