Writing Monitors for the Event Monitoring Service (December 1999)
Chapter 3 121
Creating a Resource Monitor
Processing an Unregister Event
RmLifetime
Option
Valid values continued:
RM_PREVIEW_UNREGISTER
This is a request to verify the password
for an Unregister Request. The Request
ID is also verified. The request does not
get unregistered when this lifetime option
is used. This should be used only when
RmOperationType is RM_UNREGISTER.
RM_QUERY_REQUEST
The monitor request should be
automatically deleted by EMS as soon as
the resource value has been obtained from
the monitor. The client application does
not need to send an Unregister Monitor
Request. This is not supported for
resources where RmStateType is
RM_ASYNCHRONOUS.
The default is
RM_NON_PERSISTENT_REQUEST.
RmMonitor
Reply
rm_option
_type
Since this object was created due to a
successful unregistration, this value will
always be RM_ACCEPT.
RmObjectType rm_object
_type
The object type. For a Monitor Reply, the
value is
RM_MONITOR_REPLY_OBJECT. This
value is set by
rm_get_next_event() and should
not be modified.
RmRequestID ubit32 A 32-bit value that uniquely identifies this
monitor request.
Table 3-9 Unregister Object Fields
Field Name Type Description