All Client-Library routines take a pointer to a CS_CONTEXT structure, a CS_CONNECTION structure, or a CS_COMMAND structure as a parameter.
An application must allocate these structures (using cs_ctx_alloc, ct_con_alloc, or ct_cmd_alloc) before using them as parameters.
If an application passes an invalid control structure address to a Client-Library routine, the routine returns CS_FAIL, and Client-Library does not call the application’s client message callback routine. Client-Library requires the address of a valid control structure to retrieve the address of the application’s callback routine.