Important: The information in this document is obsolete and should not be used for new development.
GetToolboxTrapAddress
You an use theGetToolboxTrapAddress
function to access the address of a Toolbox routine, which is located in the Toolbox trap dispatch table. TheGetToolboxTrapAddress
function is also available as theGetToolTrapAddress
function.
FUNCTION GetToolboxTrapAddress (trapNum: Integer): LongInt;
trapNum
- Toolbox A-line instruction or a trap number. If you specify a Toolbox A-line instruction, the function extracts the trap number for you.
DESCRIPTION
TheGetToolboxTrapAddress
function returns the address of the Toolbox routine specified by thetrapNum
parameter. If the desired Toolbox routine is not supported on the installed system software, theGetToolboxTrapAddress
function returns the address of theUnimplemented
procedure. ThetrapNum
parameter should contain a trap number in bits 0-9.GetToolboxTrapAddress
masks the irrelevant high-order bits. AGetToolboxTrapAddress(trapNum)
function call performs the same operation as aNGetTrapAddress(trapNum,
ToolTrap)
function call.SEE ALSO
For more information about theUnimplemented
procedure, see page 8-29. TheNGetTrapAddress
function is described next. For an example of how to use theGetToolboxTrapAddress
function, see Listing 8-1 on page 8-22.