Writing Monitors for the Event Monitoring Service (December 1999)

Chapter 3 85
Creating a Resource Monitor
Processing a Subclass Request Event
The purpose of the Resource State List is to identify all of the possible
state values that a resource of type RM_ENUMERATED_TYPE might take.
Each object in the Resource State List contains the fields listed in Table
3-4:
The purpose of the Subclass List is to identify the names of all of the
subclasses that exist below this resource class. Each object in the
Subclass List contains the fields listed in Table 3-5:
Table 3-4 Resource State Object Fields
Field Name Type Description
RmObjectType rm_object
_type
The object type. For a Resource State
object, the value is
RM_RESOURCE_STATE_OBJECT. This
field is set by rm_create() and should
not be modified.
RmStateName char * A state name. This field is a string of up to
256 characters with a terminating null.
RmStateValue sbit32 Identifies a signed 32-bit numeric value
associated with the string.
Table 3-5 Subclass List Object Fields
Field Name Type Description
RmObjectType rm_object
_type
The object type. For a Subclass object, the
value is
RM_SUBCLASS_CHILD_OBJECT. This
field is set by rm_create() and should
not be modified.