Writing Monitors for the Event Monitoring Service (December 1999)

Chapter 3 109
Creating a Resource Monitor
Processing a Resource Update Event
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 resource monitor must set this
field.
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 RmMonitorReturnDataLen
must be set before the
RmMonitorReturnData field.
EMS uses the
RmMonitorReturnDataLen 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 NULL.
Table 3-7 Resource Update Object Fields
Field Name Type Description