Writing Monitors for the Event Monitoring Service (December 1999)

Chapter 3 83
Creating a Resource Monitor
Processing a Subclass Request Event
RmResource
Name
char * A pointer to a null-terminated string of
up to 256 characters that identifies the
resource class or instance. The
RmResourceName contains the full path
name of the resource class or instance.
See the section, “The Resource
Dictionary” for more details.
When the Subclass Reply object is
created, the RmResourceName field is
set to the same value that was specified
by the client application in the Subclass
Request object.
RmResource
Type
rm_option
_type
Indicates whether the resource is a class
or an instance. For resource instances, it
also defines what form the resource’s
values assume. Valid values are shown
below. See the section, “EMS Resource
Types” for an explanation of these
values.
RM_RESOURCE_CLASS_TYPE
RM_STRING_TYPE
RM_ENUMERATED_TYPE
RM_SBIT32_TYPE
RM_UBIT32_TYPE
RM_FLOAT64_TYPE
RM_ERROR_TYPE
RM_NOT_READY
This field must be set by the resource
monitor. The default value is
RM_RESOURCE_CLASS_TYPE.
Table 3-3 Subclass Reply Object Fields
Field Name Type Description