ShutDwnInstall
ShutDwnInstall Install shutdown procedure pointed to by ShutDwnProc
#include <ShutDown.h> ShutDown Manager Data
void ShutDwnInstall( ShutDwnProc, flags );
ProcPtr ShutDwnProc ; address of shut down procedure
short flags ; value indicating where to execute the procedure
returns none
ShutDwnInstall installs your application's shutdown procedure with a
mask to indicate at what point in the overall shutdown to execute your
procedure.
ShutDwnProc procedure to be executed before either rebooting or
turning off the power.
flags indicates where in the shutdown process you want
your procedure executed. It will be one of the following
masks:
sdOnPowerOff 1 Call shutdown procedure before turning
off the computer.
sdOnRestart 2 Call shutdown procedure before rebooting
the computer.
sdOnUnmount 4 Call shutdown procedure before
unmounting the volume.
sdOnDrivers 8 Call shutdown procedure before closing
drivers.
sdRestartOrPower 1+2 Call shutdown procedure before either
turning off the computer or rebooting it.