Compartir a través de


LPGET_STATUS (Compact 2013)

3/26/2014

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

See Also

Reference

USB Driver Functions
LPTRANSFER_NOTIFY_ROUTINE