Share via


LPGET_INTERFACE (Windows CE 5.0)

Send Feedback

This function sends a request to a universal serial bus (USB) device for information about alternate device settings.

typedef USB_TRANSFER (* LPGET_INTERFACE)(  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 of type LPTRANSFER_NOTIFY_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: Usbdi.h.

See Also

LPABORT_TRANSFER | LPGET_TRANSFER_STATUS | LPIS_TRANSFER_COMPLETE | LPTRANSFER_NOTIFY_ROUTINE | LPSET_INTERFACE

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.