Topic : TOS - The Operating System Author : Version : tos.hyp (December 19, 2008) Subject : Programmieren/Atari Nodes : 3010 Index Size : 93790 HCP-Version : 5 Compiled on : Atari @charset : atarist @lang : @default : Title @help : @options : +g -i -s +x +zz -t4 @width : 70 View Ref-File12.1.8 The shutdown process in MagiC Mac TOS Under MagiC Mac the shutdown process will be taken on by the program 'shutdown.prg'; if this was able to terminate all currently active (Atari) programs, then MagiC Mac itself will be terminated as well. Some programmers might find it of interest how one can terminate MagiC Mac without a query. This can be done in two steps: . Switch to the Macintosh-mode (with modeMac) . Execute the Mac routine ExitToShell. In Pure-C this could look as follows, for instance: static pascal void ExitToShell (void) 0xA9F4; MgMcCookie *mgmc; ... ... get_cookie ("MgMc", &mgmc); /* Pointer to MgMc cookie structure */ mgmc->modeMac (); /* Switch to Mac-mode */ ExitToShell (); /* Terminates MM at once without query */ This information could be important if you want to program your own shutdown.prg. See also: General remarks about shutdown shel_write Shutdown in MultiTOS Shutdown in MagiC Shutdown at the receiver Shutdown at the initiator