Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Drivers > Reading USB descriptors w/o a driver installed?

Reply
Thread Tools Display Modes

Reading USB descriptors w/o a driver installed?

 
 
ryan01701
Guest
Posts: n/a

 
      06-15-2010
Using the UCView tool in the WinDDK, I can read the USB descriptors of
devices that are attached even if I do not have a driver installed for them
(show up in Device Manager with yellow exclamation mark).

What is the standard way of doing this programatically? I've only ever
gotten descriptors using calls into the driver (WinUSB or otherwise). Is it
accessible through SetupAPI somehow?

I am specifically interested in getting string descriptors, although I
assume if I can get the device descriptor, I'll be able to get any available
descriptors.

Thanks,

--
Ryan
 
Reply With Quote
 
 
 
 
Wilhelm Noeker
Guest
Posts: n/a

 
      06-15-2010
ryan01701 wrote:

> Using the UCView tool in the WinDDK, I can read the USB descriptors of
> devices that are attached even if I do not have a driver installed for them
> (show up in Device Manager with yellow exclamation mark).
>
> What is the standard way of doing this programatically? I've only ever
> gotten descriptors using calls into the driver (WinUSB or otherwise). Is it
> accessible through SetupAPI somehow?


IOCTL_USB_GET_DESCRIPTOR_FROM_NODE_CONNECTION is what you want. Sample
code is either UsbView (as Don Burn already pointed out), or this
console tool from Intel:
http://www.intel.com/intelpress/usb/examples/DUSBVC.PDF
 
Reply With Quote
 
ryan01701
Guest
Posts: n/a

 
      06-15-2010
"Wilhelm Noeker" wrote:
> IOCTL_USB_GET_DESCRIPTOR_FROM_NODE_CONNECTION is what you want. Sample
> code is either UsbView (as Don Burn already pointed out), or this
> console tool from Intel:
> http://www.intel.com/intelpress/usb/examples/DUSBVC.PDF


This looks like it will work. I assume that I will have to walk the USB
device tree to find the hub to which the device is attached and its port
index in order to properly use this ioctl. That's what I see going on in the
USBView source code.

Thanks,

--
Ryan
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
No network drive mapping after joining Active Directory ? Patrick Active Directory 29 05-05-2010 12:21 PM
My PnP Monitor is seen as Non PnP??? Colin Windows Vista Hardware 1 11-29-2007 05:01 PM
cannot install Vista ACPI error Salsakidd Windows Vista Installation 6 10-10-2007 10:12 AM
americas army stuttering under vista premium ernie Windows Vista Games 0 02-27-2007 10:20 PM
Re: No Matter What Installations Won't Boot On My Laptop Richard Urban Windows Vista Installation 1 01-06-2007 05:08 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59