43 #if PRAGMA_STRUCT_ALIGN
44 #pragma options align = mac68k
45 #elif PRAGMA_STRUCT_PACKPUSH
47 #elif PRAGMA_STRUCT_PACK
64 #if CALL_NOT_IN_CARBON
78 uppShutDwnProcInfo = 0x00001002
84 (ProcPtr)(userRoutine), uppShutDwnProcInfo, GetCurrentArchitecture());
87 #define NewShutDwnUPP(userRoutine) \
88 (ShutDwnUPP) NewRoutineDescriptor( \
89 (ProcPtr)(userRoutine), uppShutDwnProcInfo, GetCurrentArchitecture())
103 #if !OPAQUE_UPP_TYPES
110 #define DisposeShutDwnUPP(userUPP) DisposeRoutineDescriptor(userUPP)
122 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
123 #pragma parameter InvokeShutDwnUPP(__D0, __A0)
127 #if !OPAQUE_UPP_TYPES && \
128 (!TARGET_OS_MAC || !TARGET_CPU_68K || TARGET_RT_MAC_CFM)
132 CALL_ONE_PARAMETER_UPP(userUPP, uppShutDwnProcInfo, shutDownStage);
135 #define InvokeShutDwnUPP(shutDownStage, userUPP) \
136 CALL_ONE_PARAMETER_UPP((userUPP), uppShutDwnProcInfo, (shutDownStage))
142 #if CALL_NOT_IN_CARBON || OLDROUTINENAMES
144 #define NewShutDwnProc(userRoutine) NewShutDwnUPP(userRoutine)
145 #define CallShutDwnProc(userRoutine, shutDownStage) \
146 InvokeShutDwnUPP(shutDownStage, userRoutine)
149 #if CALL_NOT_IN_CARBON
209 #if PRAGMA_STRUCT_ALIGN
210 #pragma options align = reset
211 #elif PRAGMA_STRUCT_PACKPUSH
213 #elif PRAGMA_STRUCT_PACK
217 #ifdef PRAGMA_IMPORT_OFF
Basic Macintosh data types.
Mixed Mode Manager Interfaces.
void DisposeRoutineDescriptor(UniversalProcPtr theUPP)
UniversalProcPtr NewRoutineDescriptor(ProcPtr theProc, ProcInfoType theProcInfo, ISAType theISA)
void DisposeShutDwnUPP(ShutDwnUPP userUPP)
void ShutDwnInstall(ShutDwnUPP shutDownProc, short flags)
@ sdOnUnmount
Definition: ShutDown.h:55
@ sdOnBootVolUnmount
Definition: ShutDown.h:57
@ sdRestartOrPower
Definition: ShutDown.h:59
@ sdOnDrivers
Definition: ShutDown.h:56
@ sdOnRestart
Definition: ShutDown.h:54
void ShutDwnRemove(ShutDwnUPP shutDownProc)
void ShutDwnPower(void)
Perform housekeeping and turn off the power.
void ShutDwnStart(void)
Perform housekeeping and reboot.
#define NewShutDwnUPP(userRoutine)
Definition: ShutDown.h:87
void InvokeShutDwnUPP(short shutDownStage, ShutDwnUPP userUPP)
typedef CALLBACK_API_REGISTER68K(void, SIInterruptProcPtr,(SPBPtr inParamPtr, Ptr dataBuffer, short peakAmplitude, long sampleSize))
typedef REGISTER_UPP_TYPE(HighHookProcPtr) HighHookUPP