// wdfusb.h
BYTE WdfUsbInterfaceGetNumSettings(
[in] WDFUSBINTERFACE UsbInterface
);
View the official Windows Driver Kit DDI referenceNo description available.
[Applies to KMDF and UMDF]
The WdfUsbInterfaceGetNumSettings method returns the number of alternate settings that a specified USB interface supports.
UsbInterface [in]A handle to a USB interface object that was obtained by calling WdfUsbTargetDeviceGetInterface.
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.
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.
The following code example obtains the number of alternate settings that are available for a specified USB interface.
BYTE altSettings;
altSettings = WdfUsbInterfaceGetNumSettings(UsbInterface);
WdfUsbTargetDeviceCreateWithParameters
WdfUsbTargetDeviceGetInterface
WdfUsbTargetDeviceSelectConfig