Important: The information in this document is obsolete and should not be used for new development.
kRTPreLaunch and kRTPostLaunch
In the classic 68K near model environment, you cannot call_Launchor_Chaindirectly, but must instead use the Process Manager callLaunchApplication(See Inside Macintosh: Processes for more details). If you need to call_Launchor_Chainunder the far model environment, you must wrap a call to_Launchwith calls toRuntimeusing thekPreLaunchandKPostLaunchoperations as follows:
IMPORT(Runtime): CODE MOVE.W#kRTPreLaunch,-(SP) ; push fOperation SUBQ.W#2,-(SP) ; room for result PEA2(SP) ; push ptr to RTPB JSRRuntime ; prepare for launch _Launch ; attempt a launch MOVE.W#kRTPostLaunch,-(SP); push fOperation SUBQ.W#2,-(SP) ; room for result PEA2(SP) ; push ptr to RTPB JSRRuntime ; post-launch housekeepingThe only field used in theRTPBstructure (page B-2) isfOperation. NeitherkPreLaunchorkPostLaunchrequire anfRTParamsparameter block.If you need to call
_Chain, you must wrap the routine withkPreLaunchandkPostLaunchin the same manner as with the_Launchroutine.
The CFM-68K runtime environment does not support calling
- IMPORTANT
- You must never call the
_Chaintrap since it is not implemented by the System 7 Process Manager.![]()
_Launchor_Chaindirectly from a CFM-68K application. You can callkPreLaunchandkPostLaunchin the CFM-68K runtime environment, but the routines do nothing.