ShutDwnInstall
ProcPtr ShutDwnProc ; address of shut down procedure short flags ; value indicating where to execute the procedure
returns none
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.