HP Operations Manager for Windows

opcif_write()


   #include opcapi.h

   int opcif_write(
              int                interface_id,     /* in */
              const opcdata      data              /* in */
                  );

Parameters

interface_id
Specifies which interface instance is used.
data
HPOM data structure.

Description

Use the function opcif_write() to write a message to the HPOM Interface. Depending on the type of interface, the message is written into the message queue of the message agent.

This function can only be used for interfaces of the following types:

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_INVALID_OPCDATA_TYPE:
data must be of the type OPCDTYPE_MESSAGE.

OPC_ERR_CANT_WRITE_MSG
Unable to write message.

OPC_ERR_WRONG_MSITYPE
Interface type is invalid for this operation.

Versions

HPOM for Windows 8.00 and higher