Partager via


FindInterface

This function searches for a specific interface on a USB device.

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] Interface number.
  • bAlternateSetting
    [in] 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 drivers can select. For a device with no alternate settings, use a value of zero (0).

Requirements

OS Versions: Windows CE 2.10 and later.
Header: Usbd.hpp.

See Also

GetDeviceInfo | USB_INTERFACE | USB Drivers

 Last updated on Tuesday, May 18, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.