USB_BUSIFFN_QUERY_BUS_TIME
TOC
Collapse the table of content
Expand the table of content

USB_BUSIFFN_QUERY_BUS_TIME function

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

Syntax


USB_BUSIFFN_QUERY_BUS_TIME QueryBusTime;

NTSTATUS QueryBusTime(
  _In_      PVOID  BusContext,
  _Out_opt_ PULONG CurrentFrame
)
{ ... }

Parameters

BusContext [in]

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

CurrentFrame [out, optional]

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.

The function definition that is provided on this reference page is an example function whose parameters are just placeholder names. The actual prototype of the function is declared in usbbusif.h as follows:

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

);

Requirements

Target platform

Header

Usbbusif.h (include Usbbusif.h)

IRQL

< = DISPATCH_LEVEL

See also

USB_BUS_INTERFACE_USBDI_V0

 

 

Send comments about this topic to Microsoft

Show:
© 2016 Microsoft