次の方法で共有


LPGET_INTERFACE (Windows Embedded CE 6.0)

1/6/2010

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

See Also

Reference

USB Host Driver Functions
LPABORT_TRANSFER
LPGET_TRANSFER_STATUS
LPIS_TRANSFER_COMPLETE
LPTRANSFER_NOTIFY_ROUTINE
LPSET_INTERFACE