HP Operations Manager for Windows

opcdata_create()


   #include opcapi.h

   int opcdata_create(
                     int          data_type,     /* in */
                     opcdata      *data          /* out */
                     );

Parameters

data_type
Specifies the type of the allocated data area;
see HPOM Data Structures for a list of supported data structures.

data
HPOM data structure.

Description

This function allocates and initializes a data structure. To get or set attributes, the respective routines must be called. The memory used for the area must be deallocated by calling opcdata_free().

Return Values

OPC_ERR_OK:
OK

OPC_ERR_INVALID_OUTPARAM:
data is invalid; probably NULL

OPC_ERR_CANT_INIT:
unable to initialize

OPC_ERR_NO_MEMORY:
memory allocation failed

Versions

HPOM for Windows A.07.50 and later

See Also

HPOM Data Structures