WdfUsbInterfaceGetInterfaceNumber - NtDoc

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

BYTE WdfUsbInterfaceGetInterfaceNumber(
  [in] WDFUSBINTERFACE UsbInterface
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

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

WdfUsbInterfaceGetInterfaceNumber function

Description

[Applies to KMDF and UMDF]

The WdfUsbInterfaceGetInterfaceNumber method returns the interface number of a specified USB interface object.

Parameters

UsbInterface [in]

A handle to a USB interface object that was obtained by calling WdfUsbTargetDeviceGetInterface.

Return value

WdfUsbInterfaceGetInterfaceNumber returns the interface number.

A bug check occurs if the driver supplies an invalid object handle.

Remarks

For more information about interface numbers, see the USB specification.

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

Examples

The following code example obtains the interface number of a specified USB interface object.

BYTE interfaceNumber;

interfaceNumber = WdfUsbInterfaceGetInterfaceNumber(UsbInterface);

See also

WdfUsbTargetDeviceGetInterface