HP Operations Manager for Windows

opcif_register()


   #include opcapi.h

   int opcif_register(
              int                interface_id,     /* in */
              const opcregcond   reg_cond ,        /* in */
              long               *cond_id          /* out */
                     );

Parameters

interface_id
Specifies which interface instance is used.

reg_cond
  • Messages:

    Defines the combination of message attributes that are checked; NULL registers for all messages

  • Message Events:

    Defines an event mask and the restriction of message events of messages for certain operators

  • Application Responses

    Defines a certain application response specified by the application response ID

cond_id
Returns an ID to reference this condition in a subsequent call to opcif_unregister(); NULL is allowed if the API user is not interested in the ID (for example, if opcif_unregister()is not called later on).

Description

The function opcif_register() is used by an external application to register for the following attributes. See also opcregcond.

Return Values

OPC_ERR_OK:
OK

OPC_ERR_CANT_INIT:
initialization of queues failed

OPC_ERR_INVALID_INTERFACE_ID:
no such interface opened

OPC_ERR_CANT_INFORM_MSGA:
informing message agent failed

Versions

HPOM for Windows A.07.50 and later

See Also

HPOM Interfaces