PUSB_BUSIFFN_QUERY_BUS_TIME_EX - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// usbbusif.h

typedef NTSTATUS
  (USB_BUSIFFN *PUSB_BUSIFFN_QUERY_BUS_TIME_EX) (
    IN PVOID,
    IN PULONG
  );
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nc-usbbusif-pusb_busiffn_query_bus_time_ex)

PUSB_BUSIFFN_QUERY_BUS_TIME_EX callback function

Description

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

unnamedParam1 [in]

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

unnamedParam2 [out]

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.

See also