The template for an exit handler is:
#include <ospublic.h>
CS_RETCODE CS_PUBLIC exit_handler(
CS_CONTEXT *context
)
{
... your code goes here ...
return CS_SUCCEED;
}
where
context – is pointer to the CS_CONTEXT structure.
Exit handlers must return CS_SUCCEED.