PORTS Forum

Ports and Interfaces => USB => Topic started by: yindengxie on August 15, 2020, 10:07:20 am

Title: Why doesn't Windows provide Host API to get all the descriptors directly?
Post by: yindengxie on August 15, 2020, 10:07:20 am
Hello Jan,

Why doesn't Windows provide Host API to get all the descriptors directly,
but need to get these descriptors through USBView or some paid software?

    THANKS!
Title: Re: Why doesn't Windows provide Host API to get all the descriptors directly?
Post by: bpaddock on August 17, 2020, 08:31:58 am
TDD is free:

https://www.thesycon.de/eng/usb_descriptordumper.shtml

These programs get the descriptor by calling the Windows setup API.

Source code to USBView is here:

https://github.com/microsoft/Windows-driver-samples/tree/master/usb


These may also be useful to you:

https://github.com/libusb/hidapi

https://libusb.info


Title: Re: Why doesn't Windows provide Host API to get all the descriptors directly?
Post by: yindengxie on August 17, 2020, 11:12:57 am
Hello bpaddock,
 
   Many thanks for your help and Info.

     Best Regards!