#include opcapi.h
int opcif_register(
int interface_id, /* in */
const opcregcond reg_cond,
/* in */
long *cond_id
/* out */
);
Parameters
interface_id
reg_cond
Defines the combination of message attributes that are checked. NULL registers for all messages
Defines an event mask and the restriction of message events of messages for certain operators.
Defines an application response specified by the application response ID.
cond_id
Description
The function opcif_register()
is used by an
external application to register for the following attributes:
HPOM supports registration for message type, message group, node
name, object, severity, and application attributes. You can also
combine attributes (logical AND), and pipe (|
) within
an attribute (logical OR). Multiple registrations (logical OR of
registration conditions) are also possible using a sequence of API
calls.
The following attributes are supported:
OPCREG_MSGTYPE
OPCREG_GROUP
OPCREG_NODENAME
OPCREG_OBJECT
OPCREG_SEVERITY
OPCREG_APPLICATION
Return Values
OPC_ERR_OK
OPC_ERR_CANT_INIT
OPC_ERR_INVALID_INTERFACE_ID
OPC_ERR_CANT_INFORM_MSGA
Versions
HPOM for Windows 8.00 and higher