PUSB_BUSIFFN_QUERY_BUS_TIME callback function (usbbusif.h)

The QueryBusTime function gets the current 32-bit USB frame number.

Syntax

typedef NTSTATUS
  (USB_BUSIFFN *PUSB_BUSIFFN_QUERY_BUS_TIME) (
    IN PVOID,
    IN PULONG
  );

Parameters

[in] unnamedParam1

Handle returned in the BusContext member of the USB_BUS_INTERFACE_USBDI_V0 structure by an IRP_MN_QUERY_INTERFACE request.

[out, optional] unnamedParam2

Receives the current USB frame number.

Return value

Returns STATUS_SUCCESS on success, and the appropriate error code on failure.

Remarks

This routine replaces the USBD_QueryBusTime library function provided by usbd.sys.

Requirements

Requirement Value
Target Platform Desktop
Header usbbusif.h (include Usbbusif.h)
IRQL < = DISPATCH_LEVEL

See also