Coding custom handlers

It is the application programmer’s responsibility to decide how to respond to an event and to code the event handler accordingly. Event handlers typically include a standard set of calls to process the event data. Any additional code is application-specific. For example, a SRV_MSG event handler should include code to retrieve the text of the message as well as any parameters. But an application can include additional code in the SRV_MSG event handler to send mail to users if a particular message is retrieved.