// usbdlib.h
PUSB_INTERFACE_DESCRIPTOR USBD_ParseConfigurationDescriptor(
[in] PUSB_CONFIGURATION_DESCRIPTOR ConfigurationDescriptor,
[in] UCHAR InterfaceNumber,
[in] UCHAR AlternateSetting
);
View the official Windows Driver Kit DDI referenceNo description available.
The USBD_ParseConfigurationDescriptor routine has been deprecated. Use USBD_ParseConfigurationDescriptorEx instead.
ConfigurationDescriptor [in]Pointer to a USB configuration descriptor that contains the interface for which to search.
InterfaceNumber [in]Specifies the device-defined index of the interface to be retrieved. This should be set to -1 if it should not be a search criterion.
AlternateSetting [in]Specifies the device-defined alternate-setting index of the interface to be retrieved. If the caller does not wish the alternate setting value to be a search criterion, this parameter should be set to -1.
USBD_ParseConfigurationDescriptor returns a pointer to the first interface descriptor that matches the given search criteria. If no interface matches the search criteria, it returns NULL.
USB device driver programming reference
USBD_ParseConfigurationDescriptorEx