Writing Monitors for the Event Monitoring Service (December 1999)

Chapter 5 151
Writing a Target Application
Processing a Notification Message
The following fields are defined for a Notify Object:
Table 5-2 Notify Object Fields
Field Name Type Description
RmMonitor
ReturnData
void * A pointer to up to 10,000 bytes of binary
data to be passed in a notification to the
target application.
The EMS API will not alter or use this
address. It is intended for exclusive use
by the resource monitor. Its use is
optional.
The RmMonitorReturnData value is
set by the resource monitor in the
Monitor Reply object.
RmMonitor
Return
DataLen
ubit32 The number of bytes in the
RmMonitorReturnData field.
The RmMonitorReturnData field may
contain up to 10,000 bytes.
The RmMonitorReturnDataLen value
is set by the resource monitor in the
Monitor Reply object.
RmNotifyID ubit32 A unique identifier for a given event. This
was added to distinguish more than one
event for a given resource. It is used for
archiving and retrieving monitor return
data with the resdata command.
RmObjectType rm_object
_type
The object type. For a Notify Object, the
value is RM_NOTIFY_OBJECT. This
value is set by
rm_uncompress_object() and
should not be modified.