h6. [[WindowManager]] h6(. » [[WindowManager Messages|Messages]] h6((. » [[Message Codes|Message Codes]] h6(((. » Message_AlarmSet h2. Message_AlarmSet h5. (Code &500) |_\3<^. Message Block | |/3>^. +20|<^. 0 |<^. [[Message_SetAlarm 0|Set alarm (local time)]] | |<^. 1 |<^. [[Message_SetAlarm 1|Set alarm (UTC)]] | |<^. 2 |<^. [[Message_SetAlarm 2|Cancel alarm]] | |>^. +24|\2<^. Depends on reason code at +20| h4. Use This message can be sent used to set/cancel alarms. h4. Notes If the message is recorded, then the application <code>!Alarm</code> acknowledges with 0 if successful or a null terminated error string. (Presumably this is in the error block at +20, but unsure. If it is, then the message block format is inconsistent, depending on whether it is to or from the application). When setting an alarm using local time, it is possible to add out-of-range alarms to the database, which <code> !Alarm</code> will fault on redraw (but not fault on save). When the task goes off <code>!Alarm</code> broadcasts [[Message_AlarmGoneOff]], which your application should acknowledge. h4. See also * [[Message Codes]] * [[Message_AlarmGoneOff]] * [[Wimp_Poll]]