return OS.eventNotHandledErr;
}
int commandProc (int nextHandler, int theEvent, int userData) {
int eventKind = OS.GetEventKind (theEvent);
HICommand command = new HICommand ();
OS.GetEventParameter (theEvent, OS.kEventParamDirectObject, OS.typeHICommand, null, HICommand.sizeof, null, command);
switch (eventKind) {
case OS.kEventProcessCommand: {
if (command.commandID == OS.kAEQuitApplication) {
if (!closing) close ();