Use KcsSetCallback() to associate a callback function with any set of API functions that supports callbacks. Those functions are listed in KcsFunction (see Table 3-1). If KcsSetCallback() is not called for particular values of KcsFunction, no callback is issued.
This function allocates resources. To release those resources, your application must set all callback functions to NULL, for example,
KcsSetCallback(KcsAllFunc, NULL, NULL);