OEMSetRealTime (Windows CE 5.0)
This function is called by the kernel to set the real-time clock.
BOOL OEMSetRealTime( LPSYSTEMTIME lpst );
- [in] Long pointer to the buffer containing the current time in SYSTEMTIME format.
If this function succeeds, it returns TRUE.
If this function fails, it returns FALSE.
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.
OS Versions: Windows CE 2.10 and later.
Link Library: Nk.lib.
Send Feedback on this topic to the authors