All event functions that you write for the Vermont Views event tables follow certain conventions. They must accept a pointer to a data structure and a pointer to an event structure of type EVENTPTR. They must return a 0 on failure, and a 1 or an action code on success.
Parameters for Event Functions
Return Values for Event Functions
Using Action Codes in Event Functions
When Your Event Function Should Return an Action Code