Important: The information in this document is obsolete and should not be used for new development.
Using the Shutdown Manager
The Shutdown Manager provides four procedures. The proceduresShutDwnPowerandShutDwnStartperform the same set of shutdown tasks, except thatShutDwnPowerturns off a Macintosh computer, whereasShutDwnStartrestarts it. TheShutDwnInstallroutine installs a custom shutdown procedure to perform a certain task before the computer shuts down or restarts. TheShutDwnPowerorShutDwnRestartroutine calls your shutdown procedure at a predetermined point during the shutdown or restart process. The last procedure,ShutDwnRemove, removes custom shutdown procedures installed byShutDwnInstall.
- WARNING
- Usually, only the Finder or other system software should call
ShutDwnPowerandShutDwnInstall. An application calling these procedures will cause other open applications to terminate abruptly, potentially destroying their data. ·
Subtopics
- Sending a Shutdown or Restart Event
- Installing a Custom Shutdown Procedure