Writing Monitors for the Event Monitoring Service (December 1999)

110 Chapter3
Creating a Resource Monitor
Processing a Resource Update Event
RmMonitor
ReturnDataLen
ubit32 The number of bytes in the
RmMonitorReturnData field. The
resource monitor must set this field.
The RmMonitorReturnData field
may contain up to 10,000 bytes.
The RmMonitorReturnDataLen
must be set before the
RmMonitorReturnData field.
EMS uses the
RmMonitorReturnData value to
determine how many bytes to copy
when the monitor calls rm_set() to
store the RmMonitorReturnData in
the Resource Update object.
After you have set this value, it
remains set in subsequent update
events for this resource. For update
events when you do not want to return
data, set this field to 0.
RmObjectType rm_object
_type
The object type. For a Resource
Update, the value is
RM_RESOURCE_UPDATE_OBJECT.
This value is set by
rm_get_next_event() and
should not be modified.
Table 3-7 Resource Update Object Fields
Field Name Type Description