Click to Rate and Give Feedback
MSDN
MSDN Library
Windows Driver Kit
Reference
 WdfUsbInterfaceGetNumConfiguredPipe...

  Switch on low bandwidth view
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.

See Also

WdfUsbTargetDeviceGetInterface, WdfUsbTargetDeviceSelectConfig


Send feedback on this topic
Built on May 20, 2009
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker