CS_CLIENTMSG structure

Description

A CS_CLIENTMSG (client message) structure contains information about an error or informational message returned by Open ClientConnect. This structure is defined within the application. When the error involves interaction with the operating system, the operating system error information is returned to this structure. ct_diag returns a message string and information about the message into CS_CLIENTMSG.

Server messages are returned to a CS_SERVERMSG structure, described in “CS_SERVERMSG structure”. A sample CS_CLIENTMSG structure is provided in the CTPUBLIC include file.

A CS_CLIENTMSG structure is defined as follows:

typedef struct_cs_clientmsg {
CS_INT    severity;
CS_CHAR   msgnumber;
CS_INT    msgstring[CS_MAX_MSG];
    /* 
     **The error may have involved interactions 
     **of the operating system (OS). If so, the 
     **following contains the OS info.
	*/
CS_INT    osnumber; 
CS_CHAR   osstring[CS_MAX_MSG; 
CS_INT    osstringlen; 
CS_INT    status; 
CS_CLIENTMSG;

Description of arguments in CS_CLIENTMSG structure