WdfUsbInterfaceGetNumSettings - NtDoc

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

BYTE WdfUsbInterfaceGetNumSettings(
  [in] WDFUSBINTERFACE UsbInterface
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

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

WdfUsbInterfaceGetNumSettings function

Description

[Applies to KMDF and UMDF]

The WdfUsbInterfaceGetNumSettings method returns the number of alternate settings that a specified USB interface supports.

Parameters

UsbInterface [in]

A handle to a USB interface object that was obtained by calling WdfUsbTargetDeviceGetInterface.

Return value

WdfUsbInterfaceGetNumSettings returns the number of alternate settings that the specified USB interface supports.

A bug check occurs if the driver supplies an invalid object handle.

Remarks

Your driver can call WdfUsbInterfaceGetNumSettings after it has called WdfUsbTargetDeviceCreateWithParameters.

For more information about the WdfUsbInterfaceGetNumSettings method and USB I/O targets, see USB I/O Targets.

Examples

The following code example obtains the number of alternate settings that are available for a specified USB interface.

BYTE altSettings;

altSettings = WdfUsbInterfaceGetNumSettings(UsbInterface);

See also

WdfUsbTargetDeviceCreateWithParameters

WdfUsbTargetDeviceGetInterface

WdfUsbTargetDeviceSelectConfig