USBD_ParseConfigurationDescriptor function

The USBD_ParseConfigurationDescriptor routine has been deprecated. Use USBD_ParseConfigurationDescriptorEx instead.

Syntax

DECLSPEC_IMPORT PUSB_INTERFACE_DESCRIPTOR USBD_ParseConfigurationDescriptor(
  PUSB_CONFIGURATION_DESCRIPTOR ConfigurationDescriptor,
  UCHAR                         InterfaceNumber,
  UCHAR                         AlternateSetting
);

Parameters

ConfigurationDescriptor

Pointer to a USB configuration descriptor that contains the interface for which to search.

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.

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

   
Windows version Deprecated. Use USBD_ParseConfigurationDescriptorEx instead.
Target Platform Universal
Header usbdlib.h
Library Usbd.lib

See Also

USB device driver programming reference

USBD_ParseConfigurationDescriptorEx