WDF_USB_INTERFACE_SELECT_SETTING_PARAMS_INIT_SETTING - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// wdfusb.h

VOID WDF_USB_INTERFACE_SELECT_SETTING_PARAMS_INIT_SETTING(
  [out] PWDF_USB_INTERFACE_SELECT_SETTING_PARAMS Params,
  [in]  UCHAR                                    SettingIndex
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wdfusb-wdf_usb_interface_select_setting_params_init_setting)

WDF_USB_INTERFACE_SELECT_SETTING_PARAMS_INIT_SETTING function

Description

[Applies to KMDF and UMDF]

The WDF_USB_INTERFACE_SELECT_SETTING_PARAMS_INIT_SETTING function initializes a WDF_USB_INTERFACE_SELECT_SETTING_PARAMS structure so that a driver can select a USB interface by specifying a handle to an interface object and an alternate setting for the interface.

Parameters

Params [out]

A pointer to a driver-allocated WDF_USB_INTERFACE_SELECT_SETTING_PARAMS structure.

SettingIndex [in]

An index value that identifies an alternate setting for the interface. (The interface is identified by an interface object handle that the driver passes to WdfUsbInterfaceSelectSetting.)

Remarks

The WDF_USB_INTERFACE_SELECT_SETTING_PARAMS_INIT_SETTING function zeros the WDF_USB_INTERFACE_SELECT_SETTING_PARAMS structure and sets its Size member to the size of the structure. It also sets the Type member to WdfUsbInterfaceSelectSettingTypeSetting and sets the Types.Interface.SettingIndex member to the value that is specified by SettingIndex.

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

For a code example that uses WDF_USB_INTERFACE_SELECT_SETTING_PARAMS_INIT_SETTING, see WdfUsbInterfaceSelectSetting.

See also

WDF_USB_INTERFACE_SELECT_SETTING_PARAMS

WDF_USB_INTERFACE_SELECT_SETTING_PARAMS_INIT_DESCRIPTOR

WDF_USB_INTERFACE_SELECT_SETTING_PARAMS_INIT_URB

WdfUsbInterfaceSelectSetting