Important: The information in this document is obsolete and should not be used for new development.
ShutDwnStart
The system software calls theShutDwnStartprocedure to restart a Macintosh computer.
PROCEDURE ShutDwnStart;DESCRIPTION
TheShutDwnStartprocedure initiates the final stage of restarting the system. It performs system housekeeping, executes any custom shutdown procedures installed withShutDwnInstall, and restarts the computer. The system housekeeping functions consist of a five-step process, described in full in "The Shutdown Process" on page 8-4.You should always call
ShutDwnStartindirectly, through the Finder, to give any other applications running at the time a chance to exit gracefully. "Sending a Shutdown or Restart Event" on page 8-7 describes the correct way to restart a Macintosh computer.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theShutDwnStartprocedure are
Trap macro Selector _Shutdown $0002