次の方法で共有


LPGET_STATUS (Windows Embedded CE 6.0)

1/6/2010

This function sends a GET_STATUS request to a universal serial bus (USB) device.

Syntax

typedef USB_TRANSFER (* LPGET_STATUS)(
  USB_HANDLE hDevice,
  LPTRANSFER_NOTIFY_ROUTINE lpStartAddress,
  LPVOID lpvNotifyParameter,
  DWORD dwFlags,
  UCHAR bIndex,
  LPWORD lpwStatus
);

Parameters

  • hDevice
    [in] Handle to a USB device.
  • lpvNotifyParameter
    [in] Pointer to the parameter to pass to a callback routine.
  • dwFlags
    [in] Value of USB_NO_WAIT or zero (0), and one of the values from the following table.

    Value Description

    USB_SEND_TO_DEVICE

    Request for status of the device.

    USB_SEND_TO_INTERFACE

    Request for status of the interface.

    USB_SEND_TO_ENDPOINT

    Request for status of the endpoint.

  • bIndex
    [in] Value of zero (0) for DEVICE, or interface or endpoint number.
  • lpwStatus
    [out] Device's status.

Return Value

A USB_TRANSFER handle indicates success. NULL indicates failure.

Remarks

This function initiates a control transfer to a USB device requesting device, interface, or endpoint status.

Requirements

Header usbdi.h
Windows Embedded CE Windows CE 2.10 and later

See Also

Reference

USB Host Driver Functions
LPTRANSFER_NOTIFY_ROUTINE