OEMSetAlarmTime

OEMSetAlarmTime (Compact 2013)

10/16/2014

This function sets the real-time clock (RTC) alarm.


BOOL OEMSetAlarmTime(
  LPSYSTEMTIME lpst 
);

lpst

[in] Pointer to the buffer containing the alarm time.

TRUE indicates success. FALSE indicates failure.

This function must be re-entrant and, thus, must protect the hardware from being accessed multiple times. This function is called by the kernel.

The following code example shows how to make this function re-entrant.

Ee478154.note(en-us,WinEmbedded.80).gifImportant:
For readability, the following code example does not contain security checking or error handling. Do not use the following code in a production environment.
BOOL OEMSetAlarmTime( __in LPSYSTEMTIME lpst)
{
    BOOL RetVal;

    EnterCriticalSection(&RTC_critsect);
    RetVal = Bare_SetAlarmTime(lpst);
    LeaveCriticalSection(&RTC_critsect);
    
    return RetVal;
}

Header

nkintr.h

Library

OEMMain.lib or OEMMain_StaticKITL.lib

Show:
© 2016 Microsoft