HP Operations Manager for Windows

opcreg_set_str()


   #include opcapi.h

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

Parameters

reg_cond
HPOM registration condition structure.
field
Select the attribute that is set.
value
Specify the value of the attribute.

Description

Use the function opcreg_set_str() to set attributes to a certain value.

Return Values

OPC_ERR_OK
OK.
OPC_ERR_INVALID_FIELD
field is invalid.

Versions

HPOM for Windows 8.00 and higher

See Also

opcreg_copy()
opcreg_create()
opcreg_free()
opcreg_get_long()
opcreg_get_str()
opcreg_set_long()