Calling convention for event handlers

All event handlers, error handlers, and any other function that is installed as a callback in the EAServer runtime must be coded according to the following rules: