Windows Driver Kit: Kernel-Mode Driver Framework
WdfUsbInterfaceGetNumConfiguredPipes
The WdfUsbInterfaceGetNumConfiguredPipes method returns the number of pipes that are configured for a specified USB device interface.
BYTE
WdfUsbInterfaceGetNumConfiguredPipes(
IN WDFUSBINTERFACE UsbInterface
);
Parameters
- UsbInterface
- A handle to a USB interface object that was obtained by calling WdfUsbTargetDeviceGetInterface.
Return Value
WdfUsbInterfaceGetNumConfiguredPipes returns the number of pipes that are configured for the specified interface.
A bug check occurs if a driver-supplied object handle is invalid.
Comments
Your driver can call WdfUsbInterfaceGetNumConfiguredPipes after it has called WdfUsbTargetDeviceSelectConfig.
For more information about the WdfUsbInterfaceGetNumConfiguredPipes method and USB I/O targets, see USB I/O Targets.
Example
The following code example obtains the number of pipes that are configured for a specified USB interface.
BYTE pipeCount;
pipeCount = WdfUsbInterfaceGetNumConfiguredPipes(UsbInterface);
Requirements
Versions: The WdfUsbInterfaceGetNumConfiguredPipes method is available in version 1.0 and later versions of KMDF.
IRQL: <=DISPATCH_LEVEL
Headers: Declared in Wdfusb.h. Include Wdfusb.h.
Library: See Framework Library Versions.
See Also
WdfUsbTargetDeviceGetInterface, WdfUsbTargetDeviceSelectConfig