Instruction Manual

OEM External Specification
OEM User’s Guide520330-001
A-12
OEM Request API (Client Application to OEM)
Return Value
0 if the request was queued successfully
An OEM error number if an error occurred
Considerations
You need not specify a State and Context for each object in ObjectNames. If you
do not include State and/or Context information, the default values of 0 and “”,
respectively, are used. However, you must include a State if you want to include
Context.
Example
Dim OEM As New OEMClass
Dim MyCallbackObject As New MyCallbackClass
Dim RC As Integer
RC = OEM.Object.Add('\Chicago', 'CPU\0:4:'''High Swap Rate''',
CPU\1:2:'''Moderate Busy Percent''' ', MyCallBackObject,
'MyClientName')
In this example, the Path \Chicago is prefixed to each object name. This causes the
object \Chicago\CPU\0 to be added with state 4, and the object \Chicago\CPU\1 to be
added with state 2.