WdfUsbTargetDeviceGetNumInterfaces - NtDoc

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

UCHAR WdfUsbTargetDeviceGetNumInterfaces(
  [in] WDFUSBDEVICE UsbDevice
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

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

WdfUsbTargetDeviceGetNumInterfaces function

Description

[Applies to KMDF and UMDF]

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

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);

See also

WdfUsbTargetDeviceCreateWithParameters