USBD_ParseConfigurationDescriptor function (usbdlib.h)
The USBD_ParseConfigurationDescriptor routine has been deprecated. Use USBD_ParseConfigurationDescriptorEx instead.
Syntax
PUSB_INTERFACE_DESCRIPTOR USBD_ParseConfigurationDescriptor(
[in] PUSB_CONFIGURATION_DESCRIPTOR ConfigurationDescriptor,
[in] UCHAR InterfaceNumber,
[in] UCHAR AlternateSetting
);
Parameters
[in] ConfigurationDescriptor
Pointer to a USB configuration descriptor that contains the interface for which to search.
[in] InterfaceNumber
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.
[in] AlternateSetting
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.
Return value
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.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Deprecated. Use USBD_ParseConfigurationDescriptorEx instead. |
Target Platform | Universal |
Header | usbdlib.h |
Library | Usbd.lib |