An application retrieves transaction states inside a server message callback only if extended error data is available.
Within a server message callback, Client-Library indicates that extended error data is available by setting the CS_HASEED bit of the status field of the CS_SERVERMSG structure describing the message.
If extended error data is available, the application retrieves the current transaction state by:
Retrieving the CS_COMMAND with the extended error data by calling ct_con_props with property as CS_EED_CMD.
Calling ct_res_info with type as CS_TRANS_STATE. ct_res_info sets its *buffer parameter to one of the symbolic values listed in Table 2-21.