// wdfusb.h
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
);
View the official Windows Driver Kit DDI referenceNo description available.
[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.
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.
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:
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