Partager via


LPFIND_INTERFACE (Windows Embedded CE 6.0)

1/6/2010

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
Windows Embedded CE Windows CE 2.10 and later

See Also

Reference

USB Host Driver Functions
LPGET_DEVICE_INFO
USB_INTERFACE