|
Mac OS 9
|
Shutdown Manager Interfaces. More...
Go to the source code of this file.
Macros | |
| #define | NewShutDwnUPP(userRoutine) |
| #define | DisposeShutDwnUPP(userUPP) DisposeRoutineDescriptor(userUPP) |
| #define | InvokeShutDwnUPP(shutDownStage, userUPP) CALL_ONE_PARAMETER_UPP((userUPP), uppShutDwnProcInfo, (shutDownStage)) |
| #define | NewShutDwnProc(userRoutine) NewShutDwnUPP(userRoutine) |
| #define | CallShutDwnProc(userRoutine, shutDownStage) InvokeShutDwnUPP(shutDownStage, userRoutine) |
Enumerations | |
| enum | { sdOnPowerOff = 1 , sdOnRestart = 2 , sdOnUnmount = 4 , sdOnDrivers = 8 , sdOnBootVolUnmount = 16 , sdRestartOrPower = 3 } |
| enum | { uppShutDwnProcInfo = 0x00001002 } |
Functions | |
| typedef | CALLBACK_API_REGISTER68K (void, ShutDwnProcPtr,(short shutDownStage)) |
| typedef | REGISTER_UPP_TYPE (ShutDwnProcPtr) ShutDwnUPP |
| ShutDwnUPP | NewShutDwnUPP (ShutDwnProcPtr userRoutine) |
| void | DisposeShutDwnUPP (ShutDwnUPP userUPP) |
| void | InvokeShutDwnUPP (short shutDownStage, ShutDwnUPP userUPP) |
| void | ShutDwnPower (void) |
| Perform housekeeping and turn off the power. More... | |
| void | ShutDwnStart (void) |
| Perform housekeeping and reboot. More... | |
| void | ShutDwnInstall (ShutDwnUPP shutDownProc, short flags) |
| void | ShutDwnRemove (ShutDwnUPP shutDownProc) |
Shutdown Manager Interfaces.
For bug reports, consult the following page on the World Wide Web:
http://developer.apple.com/bugreporter/
| #define NewShutDwnProc | ( | userRoutine | ) | NewShutDwnUPP(userRoutine) |
CALL_NOT_IN_CARBON support for pre-Carbon UPP routines: New...Proc and Call...Proc
| #define NewShutDwnUPP | ( | userRoutine | ) |
register no_return_value Func(2_bytes:D0)
| anonymous enum |
| void DisposeShutDwnUPP | ( | ShutDwnUPP | userUPP | ) |
| void InvokeShutDwnUPP | ( | short | shutDownStage, |
| ShutDwnUPP | userUPP | ||
| ) |
| ShutDwnUPP NewShutDwnUPP | ( | ShutDwnProcPtr | userRoutine | ) |
| void ShutDwnInstall | ( | ShutDwnUPP | shutDownProc, |
| short | flags | ||
| ) |
| void ShutDwnPower | ( | void | ) |
Perform housekeeping and turn off the power.
CALL_NOT_IN_CARBON
ShutDwnPower executes system and application-specific housekeeping and turns off the computer.
If the system must be manually toggled off, ShutDwnPower presents the user with an alert.
| void ShutDwnRemove | ( | ShutDwnUPP | shutDownProc | ) |
| void ShutDwnStart | ( | void | ) |
Perform housekeeping and reboot.
ShutDwnStart executes system and application-specific housekeeping and reboots the computer.
ShutDwnStart results in a Reset instruction and a jump to ROM boot code.