Compartir a través de


LPGET_INTERFACE (Compact 2013)

3/26/2014

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

Syntax

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.
  • 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 Value

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

Header

usbdi.h

See Also

Reference

USB Driver Functions
LPABORT_TRANSFER
LPGET_TRANSFER_STATUS
LPIS_TRANSFER_COMPLETE
LPTRANSFER_NOTIFY_ROUTINE
LPSET_INTERFACE