RtSetRtssTimeAsFileTime

RtSetRtssTimeAsFileTime sets the new value for RTSS time.

Syntax

VOID RtSetRtssTimeAsFileTime(
    LPFILETIME pTime,
);

Parameters

pTime

A pointer to a FILETIME structure that specifies the new value for RTSS time.

Return Value

None

Remarks

This function can be used only by RTSS processes; it cannot be used by Windows processes.

RTSS time is specified in 100-nanosecond units, that is, the number of 100-nanosecond ticks since 00:00 Jan 1,1601 at GMT. RTSS time synchronizes with Windows system time, which is typically updated only every 10 ms. Therefore, RTSS time granularity is 10 ms.

When RTX64 starts, it sets RTSS time to the Windows 64-bit system time value, that is, the number of 100-nanosecond ticks since 00:00 Jan 1,1601 at GMT. To adjust RTSS time for a local time zone:

  1. Use GetLocalTime to obtain the current local date and time.
  2. Use SystemTimeToFileTime to convert a system time to a file time.
  3. Use RtSetRtssTimeAsFileTime to set the local file time for RTSS time.

Requirements

Minimum Supported Version RTX64 2013
Header RtssApi.h
Library Rtx_Rtss.lib