How to query usb device class specific descriptor in KMDF based driver?

Hi,

I am working on a KMDF based USB driver, where I am required to query device class specific descriptor.
I did not find any direct API available in KMDF to query it.

I explored on URB and UsbBuildGetDescriptorRequest() but it takes predefined params in descriptor type: Device, Configuration & String

Please let me know if you have come across similar scenario.

Thanks in advance!

All of the interface, endpoint, and device class specific descriptors are part of the configuration descriptor. You don’t query them individually, You fetch the entire config descriptor and parse it.

@Tim_Roberts said:
All of the interface, endpoint, and device class specific descriptors are part of the configuration descriptor. You don’t query them individually, You fetch the entire config descriptor and parse it.

oh that’s great, let me check. Thank you very much.