FindInterface

This function searches for a specific interface on a device.

Syntax

LPCUSB_INTERFACE FindInterface( LPCUSB_DEVICE lpDeviceInfo, UCHAR bInterfaceNumber, UCHAR bAlternateSetting );

Parameters

lpDeviceInfo
[IN] Pointer to a device information structure, which is returned from the GetDeviceInfo function.
bInterfaceNumber
[IN] Specifies the interface number.
bAlternateSetting
[IN] Specifies an alternate interface setting.

Return Values

A pointer to a USB_INTERFACE structure indicates success. NULL indicates failure.

Remarks

Alternate settings are used to supply alternate interfaces that can be selected by user software. For a device with no alternate settings, use a value of 0.

This function is defined in the Mousedrv.cpp file.

See Also

GetDeviceInfo