Compartir a través de


OEMSetRealTime (Windows CE 5.0)

Send Feedback

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

BOOL OEMSetRealTime( LPSYSTEMTIMElpst );

Parameters

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

Return Values

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

OS Versions: Windows CE 2.10 and later.
Header: Nkintr.h.
Link Library: Nk.lib.

See Also

OEMGetRealTime | OEMSetAlarmTime | Implementing the Real-Time Clock and System Timer | Setting the Real-Time Clock

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.