INtime SDK Help
SetRtHardwareClock
INtime SDK v7.1 > About INtime > INtime Kernel > Time management > SetRtHardwareClock

Sets a new value of the system CMOS clock from a TIMEVALUE value, and optionally sets the system time to the same value.

Warning: Changing the CMOS clock on an installed and licensed system can cause license failure.
BOOLEAN SetRtHardwareClock(
    TIMEVALUE *pHwClock,
BOOLEAN bSyncSystemTime );

Parameters

pHwClock
A pointer to a TIMEVALUE structure containing the current value of the CMOS clock.
bSyncSystemTime
A BOOLEAN value which indicates whether the system time is also to be set from the pHwClock value.

Return Values

TRUE
Success
FALSE
To determine the status, call GetLastRtError

Status

E_NOT_CONFIGURED 0x0008
This call is not available on INtime for Windows.

Requirements

Versions Defined in Include Link to
INtime 6.0 intime/rt/include/rtbase.h rt.h rt.lib
See Also