Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Operating System Utilities /
Chapter 8 - Trap Manager / Trap Manager Reference
Routines / Manipulating One Trap Dispatch Table (Obsolete Routines)


SetTrapAddress

The SetTrapAddress procedure is obsolete, and is documented here only for the sake of completeness.

PROCEDURE SetTrapAddress (trapAddr: LongInt; trapNum: Integer);
trapAddr
The address of the system software routine.
trapNum
A-line instruction or a trap number. If you specify an A-line instruction, the function extracts the trap number you.
DESCRIPTION
The SetTrapAddress procedure was used when both the Operating System routine addresses and Toolbox routine adddresses were located in the same trap dispatch table. Today, any routine address with the trap number $00 to $4F, $54, or $57 is installed into the Operating System dispatch table; any other system software routine is installed into the Toolbox dispatch table.

WARNING
The SetTrapAddress procedure is not supported under Power PC.
WARNING
The SetTrapAddress procedure ignores the high-order bits in the trapNum parameter; the procedure is not able to differentiate between Operating System routines and Toolbox routines. The SetTrapAddress procedure is not reliable on any computer today.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996