WinUsb_StopTrackingForTimeSync function

The WinUsb_StopTrackingForTimeSync function tops the time synchronization feature in the USB driver stack that gets the associated system QPC time for USB bus frames and microframes.

Syntax

BOOL WinUsb_StopTrackingForTimeSync(
  WINUSB_INTERFACE_HANDLE                      InterfaceHandle,
  PUSB_STOP_TRACKING_FOR_TIME_SYNC_INFORMATION StopTrackingInfo
);

Parameters

InterfaceHandle

An opaque handle retrieved in the previous call to WinUsb_Initialize.

StopTrackingInfo

A pointer to a USB_STOP_TRACKING_FOR_TIME_SYNC_INFORMATION structure. Set TimeTrackingHandle to the handle received in the previous call to WinUsb_StartTrackingForTimeSync.

Return Value

WinUsb_StopTrackingForTimeSync returns TRUE if the operation succeeds. Otherwise, this routine returns FALSE, and the caller can retrieve the logged error by calling GetLastError.

GetLastError can return one of the following error codes.

Return code Description
ERROR_INVALID_HANDLE
The caller passed NULL in the InterfaceHandle or StopTrackingInfo parameter.

Requirements

   
Windows version Windows 10 Windows Server 2016
Target Platform Universal
Header winusb.h (include Winusb.h)
Library Winusb.lib
DLL Winusb.dll

See Also

WinUSB

WinUSB Functions

WinUsb_Initialize

WinUsb_StartTrackingForTimeSync