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_Launch
or_Chain
directly, but must instead use the Process Manager callLaunchApplication
(See Inside Macintosh: Processes for more details). If you need to call_Launch
or_Chain
under the far model environment, you must wrap a call to_Launch
with calls toRuntime
using thekPreLaunch
andKPostLaunch
operations 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 theRTPB
structure (page B-2) isfOperation
. NeitherkPreLaunch
orkPostLaunch
require anfRTParams
parameter block.If you need to call
_Chain
, you must wrap the routine withkPreLaunch
andkPostLaunch
in the same manner as with the_Launch
routine.
The CFM-68K runtime environment does not support calling
- IMPORTANT
- You must never call the
_Chain
trap since it is not implemented by the System 7 Process Manager._Launch
or_Chain
directly from a CFM-68K application. You can callkPreLaunch
andkPostLaunch
in the CFM-68K runtime environment, but the routines do nothing.