HP Operations Manager for Windows

opcdata_get_error_msg()


   #include opcapi.h

   char* opcdata_get_error_msg (
           const int error_code        /* in  */
          ,char**    p_error_msg       /* out */
          ,int*      p_error_msg_size  /* out */
                              );

Parameters

error_code
OPC_ERR_XXX error code.

p_error_msg
Pointer to allocated error message string;
memory must be freed by caller.

p_error_msg_size
Size of allocated memory in bytes.

Description

Returns error text (description) relating to the given error code. The output is localized. This function is thread-safe.

Note NOTE:
The memory allocated by this function must be freed by the caller.

Return Values

string
String contains error description.

Versions

HPOM for Windows A.07.50 and later