Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Processes
Chapter 8 - Shutdown Manager / Shutdown Manager Reference
Shutdown Manager Routines / Shutting Down or Restarting a Macintosh Computer


The system software calls the ShutDwnStart procedure to restart a Macintosh computer.

The ShutDwnStart procedure initiates the final stage of restarting the system. It performs system housekeeping, executes any custom shutdown procedures installed with ShutDwnInstall, 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 ShutDwnStart indirectly, 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.

The trap macro and routine selector for the ShutDwnStart procedure are
Trap macroSelector
_Shutdown $0002

Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUN 1996