HP Operations Manager for Windows

opcreg_set_long()


   #include opcapi.h

   int opcreg_set_long(
           opcregcond      reg_cond,            /* in/out */
           int             field,               /* in */
           long            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_long() to set attributes to a certain value.

Return Values

OPC_ERR_OK
OK

OPC_ERR_INVALID_FIELD
field is invalid

Versions

HPOM for Windows A.07.50 and later

See Also

opcreg_copy()

opcreg_create()

opcreg_free()

opcreg_get_long()

opcreg_get_str()

opcreg_set_str()