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 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 A.07.50 and later

See Also

HPOM Interfaces

HPOM Data Structures