USBDev_AssociatedIF_QtyGet

Description

Get number of associated interfaces with the default interface. That is all the interfaces besides the default interface managed by WinUSB.sys and registered under the same GUID.

Files

usbdev_api.c

Prototype

UCHAR  USBDev_AssociatedIF_QtyGet (HANDLE   dev,
                                   DWORD   *p_err);


Arguments

dev

General handle to device.

p_err

Pointer to variable that will receive the return error code from this function:

ERROR_SUCCESS
ERROR_INVALID_HANDLE

Returned Value

Number of associated interfaces, if NO error(s).

0, otherwise.

Callers

Application.

Notes / Warnings

Let’s assume that a device has three interfaces managed by WinUSB.sys driver and belonging to the same GUID: Interface #0, #1 and #2. Interface #0 is the default interface. Interfaces #1 and #2 are the associated interfaces. In that example calling USBDev_AssociatedIF_QtyGet() will return 2 associated interfaces.