Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

WdfUsbTargetDeviceGetNumInterfaces method

[Applies to KMDF and UMDF]

The WdfUsbTargetDeviceGetNumInterfaces method returns the number of USB device interfaces that are supported by a specified USB device.

Syntax


UCHAR WdfUsbTargetDeviceGetNumInterfaces(
  [in]  WDFUSBDEVICE UsbDevice
);

Parameters

UsbDevice [in]

A handle to a USB device object that was obtained from a previous call to WdfUsbTargetDeviceCreateWithParameters.

Return value

WdfUsbTargetDeviceGetNumInterfaces returns the number of USB interfaces that the device supports.

A bug check occurs if a driver-supplied object handle is invalid.

Remarks

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

Examples

The following code example obtains the number of USB device interfaces that a specified USB device supports.


UCHAR numInterfaces;

numInterfaces = WdfUsbTargetDeviceGetNumInterfaces(UsbDevice);

Requirements

Minimum KMDF version

1.0

Minimum UMDF version

2.0

Header

Wdfusb.h (include Wdfusb.h)

Library

Wdf01000.sys (KMDF);
WUDFx02000.dll (UMDF)

IRQL

<=DISPATCH_LEVEL

DDI compliance rules

DriverCreate, KmdfIrql, KmdfIrql2, UsbKmdfIrql, UsbKmdfIrql2

See also

WdfUsbTargetDeviceCreateWithParameters

 

 

Send comments about this topic to Microsoft

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.