Share via


OEMSetRealTime

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/27/2008

This function is called by the kernel to set the real-time clock.

Syntax

BOOL OEMSetRealTime( 
  LPSYSTEMTIME lpst 
);

Parameters

  • lpst
    [in] Long pointer to the buffer containing the current time in SYSTEMTIME format.

Return Value

If this function succeeds, it returns TRUE.

If this function fails, it returns FALSE.

Remarks

This function must be reentrant and, thus, must protect the hardware from being accessed multiple times.

If your hardware provides two digits to hold the value for the year, you must add additional code to avoid issues similar to the year 2000 issue.

For more details, see Rtc.c in the %_WINCEROOT%\Platform\CEPC directory.

Requirements

Header nkintr.h
Library Nk.lib
Windows Embedded CE Windows CE 2.10 and later

See Also

Reference

OEMGetRealTime
OEMSetAlarmTime

Concepts

Implementing the Real-Time Clock and System Timer