PUSB_BUSIFFN_QUERY_BUS_TIME_EX callback function (usbbusif.h)

This request is not supported.

The QueryBusTimeEx routine gets the current 32-bit USB micro-frame number.

Syntax

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

Parameters

[in] unnamedParam1

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

[out] unnamedParam2

Receives the current USB micro-frame number.

Return value

QueryBusTimeEx returns one of the following values:

Return code Description
STATUS_SUCCESS The call completed successfully.
STATUS_NOT_SUPPORTED The function was called for a USB host controller that does not support USB 2.0.

Remarks

QueryBusTimeEx gets the current USB 2.0 frame/micro-frame number when called for a USB device attached to a USB 2.0 host controller.

The lowest 3 bits of the returned micro-frame value will contain the current 125us micro-frame, while the upper 29 bits will contain the current 1ms USB frame number.

Requirements

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

See also