GetToolboxTrapAddressYou an use the
GetToolboxTrapAddressfunction to access the address of a Toolbox routine, which is located in the Toolbox trap dispatch table. The
GetToolboxTrapAddressfunction is also available as the
FUNCTION GetToolboxTrapAddress (trapNum: Integer): LongInt;
- Toolbox A-line instruction or a trap number. If you specify a Toolbox A-line instruction, the function extracts the trap number for you.
GetToolboxTrapAddressfunction returns the address of the Toolbox routine specified by the
trapNumparameter. If the desired Toolbox routine is not supported on the installed system software, the
GetToolboxTrapAddressfunction returns the address of the
trapNumparameter should contain a trap number in bits 0-9.
GetToolboxTrapAddressmasks the irrelevant high-order bits. A
GetToolboxTrapAddress(trapNum)function call performs the same operation as a
SEE ALSOFor more information about the
Unimplementedprocedure, see page 8-29. The
NGetTrapAddressfunction is described next. For an example of how to use the
GetToolboxTrapAddressfunction, see Listing 8-1 on page 8-22.