Expand Minimize

QueryBusTime routine

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

Syntax


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

Header

Usbbusif.h (include Usbbusif.h)

Library

Usbd.lib

IRQL

< = DISPATCH_LEVEL

See also

USB_BUS_INTERFACE_USBDI_V0
Bus Driver Interface Routines for USB Client Drivers

 

 

Send comments about this topic to Microsoft

Build date: 12/5/2013

Show:
© 2014 Microsoft. All rights reserved.