HP Operations Manager for Windows

opcreg_set_str()


   #include opcapi.h

   int   *opcreg_set_str (
         const opcregcond     reg_cond,       /* in/out */
         int                  field,          /* in */
         const char           *value          /* in */
                         );

Parameters

reg_cond
Registration condition containing the string.

field
Selects the attribute in the registration condition.

value
Specifies the value of the attribute in the registration condition.

Description

The function opcreg_set_str() sets the value of a string field of a registration condition.

Return Values

OPC_ERR_OK:
No error occurred.

OPC_ERR_INVALID_FIELD:
Invalid value used for field.

Versions

HPOM for Windows A.07.50 and later

See Also

opcreg_create()

opcreg_free()

opcreg_copy()

opcreg_get_long()

opcreg_get_str()

opcreg_set_long()