Expand Minimize

WDF_USB_DEVICE_SELECT_CONFIG_PARAMS_INIT_INTERFACES_DESCRIPTORS function

[Applies to KMDF and UMDF]

The WDF_USB_DEVICE_SELECT_CONFIG_PARAMS_INIT_INTERFACES_DESCRIPTORS function initializes a WDF_USB_DEVICE_SELECT_CONFIG_PARAMS structure so that a driver can specify a configuration by using USB descriptors.

Syntax


VOID WDF_USB_DEVICE_SELECT_CONFIG_PARAMS_INIT_INTERFACES_DESCRIPTORS(
  _Out_  PWDF_USB_DEVICE_SELECT_CONFIG_PARAMS Params,
  _In_   PUSB_CONFIGURATION_DESCRIPTOR ConfigDescriptor,
  _In_   PUSB_INTERFACE_DESCRIPTOR *InterfaceDescriptors,
  _In_   ULONG NumInterfaceDescriptors
);

Parameters

Params [out]

A pointer to a driver-allocated WDF_USB_DEVICE_SELECT_CONFIG_PARAMS structure.

ConfigDescriptor [in]

A pointer to a USB_CONFIGURATION_DESCRIPTOR structure.

InterfaceDescriptors [in]

A pointer to an array of USB_INTERFACE_DESCRIPTOR structures.

NumInterfaceDescriptors [in]

The number of elements that is in the InterfaceDescriptors array.

Return value

Non

Remarks

The WDF_USB_DEVICE_SELECT_CONFIG_PARAMS_INIT_INTERFACES_DESCRIPTORS function zeros the WDF_USB_DEVICE_SELECT_CONFIG_PARAMS structure and sets the Size member to the size of the structure. It also sets the Type member to WdfUsbTargetDeviceSelectConfigTypeInterfacesDescriptor.

This function uses the ConfigDescriptor, InterfaceDescriptors, and NumInterfaceDescriptors parameters to set the structure's Types.Descriptor union members.

To initialize a WDF_USB_DEVICE_SELECT_CONFIG_PARAMS structure, the driver must call one of the following functions:

Requirements

Minimum KMDF version

1.0

Minimum UMDF version

2.0

Header

Wdfusb.h (include Wdfusb.h)

See also

USB_CONFIGURATION_DESCRIPTOR
USB_INTERFACE_DESCRIPTOR
WDF_USB_DEVICE_SELECT_CONFIG_PARAMS
WDF_USB_DEVICE_SELECT_CONFIG_PARAMS_INIT_DECONFIG
WDF_USB_DEVICE_SELECT_CONFIG_PARAMS_INIT_INTERFACES_DESCRIPTORS
WDF_USB_DEVICE_SELECT_CONFIG_PARAMS_INIT_MULTIPLE_INTERFACES
WDF_USB_DEVICE_SELECT_CONFIG_PARAMS_INIT_SINGLE_INTERFACE
WDF_USB_DEVICE_SELECT_CONFIG_PARAMS_INIT_URB

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft. All rights reserved.