GenerateAlarmStampWithVerify

Syntax

int GenerateAlarmStampWithVerify (LPCTSTR alarmId, LPCTSTR fr,

    LPCTSTR refId, int state, COR_STAMP stamp,

    COR_I4 cleared_time );

Parameters

alarmId

The Alarm ID for the alarm.

fr

The Resource ID for the alarm.

refId

The optional Reference ID for the alarm. If you have no Reference ID, enter "" in this argument.

state

The current state of the alarm. Valid values are:

AM_GENERATED

AM_ACKNOWLEDGED

AM_CLEARED

stamp

The timestamp when the alarm was originally generated. You may pass a pointer to a valid timestamp or a null value.

cleared_time

If the state is AM_CLEARED, this field contains the clear time. Otherwise, pass a null value.

Remarks

This method is similar to the other GenerateAlarm calls. but invokes special processing within the Alarm Manager. If the alarm specified in the method is not currently generated, the alarm will be generated. A subsequent check is made of the alarm state of the alarm, comparing it to the requested state. If the state of the alarm is different from the state specified in this method, then the Alarm Manager applies the state specified by this method to the alarm. If no changes occur as a result of this call, nothing will be logged by the Alarm Manager. If changes occur, they will be logged as configured.

More information

CExternalAlarmManager methods and command handlers.