Поделиться через


LPFIND_INTERFACE (Compact 2013)

3/26/2014

This function searches for a specific interface on a universal serial bus (USB) device.

Syntax

typedef LPCUSB_INTERFACE (* LPFIND_INTERFACE)(
  LPCUSB_DEVICE lpDeviceInfo,
  UCHAR bInterfaceNumber,
  UCHAR bAlternateSetting
);

Parameters

  • lpDeviceInfo
    [in] Pointer to a device information structure, which is returned from the LPGET_DEVICE_INFO function.
  • bInterfaceNumber
    [in] Interface number.
  • bAlternateSetting
    [in] Alternate interface setting.

Return Value

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

Remarks

Alternate settings are used to supply alternate interfaces that drivers can select. For a device with no alternate settings, use a value of zero (0).

Requirements

Header

usbdi.h

See Also

Reference

USB Driver Functions
LPGET_DEVICE_INFO
USB_INTERFACE