Share via


GetInterface

This function sends a request to a USB device for information about alternate device settings.

USB_TRANSFER GetInterface(
  USB_HANDLE hDevice,
  LPTRANSFER_NOTIFY_ROUTINE lpStartAddress,
  LPVOID lpvNotifyParameter,
  DWORD dwFlags,
  UCHAR bInterfaceNumber,
  PUCHAR lpbAlternateSetting 
);

Parameters

  • hDevice
    [in] Handle to a USB device.
  • lpStartAddress
    [in] Non-null pointer to a callback routine.
  • lpvNotifyParameter
    [in] Pointer to a parameter to pass to the callback routine.
  • dwFlags
    [in] Value of USB_NO_WAIT or zero (0).
  • bInterfaceNumber
    [in] Interface number.
  • lpbAlternateSetting
    [out] Current alternate setting value.

Return Values

A USB_TRANSFER handle indicates success. NULL indicates failure.

Remarks

This function initiates a control transfer to a USB device, requesting the alternate setting selected for the specified interface.

Requirements

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

See Also

AbortTransfer | GetTransferStatus | IsTransferComplete | SetInterface | USB Drivers

 Last updated on Tuesday, May 18, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.