WdfUsbInterfaceGetNumConfiguredPipes - NtDoc

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

BYTE WdfUsbInterfaceGetNumConfiguredPipes(
  [in] WDFUSBINTERFACE UsbInterface
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

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

WdfUsbInterfaceGetNumConfiguredPipes function

Description

[Applies to KMDF and UMDF]

The WdfUsbInterfaceGetNumConfiguredPipes method returns the number of pipes that are configured for a specified USB device interface.

Parameters

UsbInterface [in]

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 the driver supplies an invalid object handle.

Remarks

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.

Examples

The following code example obtains the number of pipes that are configured for a specified USB interface.

BYTE pipeCount;

pipeCount = WdfUsbInterfaceGetNumConfiguredPipes(UsbInterface);

See also

WdfUsbTargetDeviceGetInterface

WdfUsbTargetDeviceSelectConfig