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)


GetTrapAddress

The GetTrapAddress function is obsolete and is documented here only for the sake of completeness.

FUNCTION GetTrapAddress (trapNum: Integer): LongInt;
trapNum
Toolbox A-line instruction or a trap number. If you specify an A-line instruction, the function extracts the trap number for you.
DESCRIPTION
The GetTrapAddress function was used when both the Operating System trap addresses and Toolbox trap addresses were located in the same trap dispatch table. Today, any system software routine with the trap number $00 to $4F, $54, or $57 is drawn from the Operating System dispatch table; any other software routine is taken from the Toolbox dispatch table.

WARNING
The GetTrapAddress function is not supported under Power PC.
WARNING
The GetTrapAddress 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 GetTrapAddress procedure is not reliable on any computer today.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996