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


ShutDwnPower

The system software calls the ShutDwnPower procedure to shut down a Macintosh computer.

PROCEDURE ShutDwnPower;
DESCRIPTION
The ShutDwnPower procedure initiates the final stage of the system shutdown process. It performs system housekeeping, executes any custom shutdown procedures installed by calls to ShutDwnInstall, and, if possible, turns the computer off. (The Shutdown Manager displays the Shutdown alert box if the user has to turn the computer off manually.) 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 ShutDwnPower 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 shut down a Macintosh computer.

ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for the ShutDwnPower procedure are
Trap macroSelector
_Shutdown$0001


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUN 1996