OEMSetRealTime

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

BOOL OEMSetRealTime( 
  LPSYSTEMTIME lpst 
);

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 a 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

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.