Expand Minimize

USBD_ParseConfigurationDescriptor routine

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

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.

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

Version

Deprecated. Use USBD_ParseConfigurationDescriptorEx instead.

Header

Usbdlib.h

Library

Usbd.lib

See also

USBD_ParseConfigurationDescriptorEx
Routines for USB Client Drivers

 

 

Send comments about this topic to Microsoft

Build date: 12/5/2013

Show:
© 2014 Microsoft. All rights reserved.