Important: The information in this document is obsolete and should not be used for new development.
GetOSTrapAddress
You can use theGetOSTrapAddress
function to access the address of an Operating System routine, that is located in the Operating System trap dispatch table.
FUNCTION GetOSTrapAddress (trapNum: Integer): LongInt;
trapNum
- Operating System A-line instruction or a trap number. If you specify an Operating System A-line instruction, the function extracts the trap number for you.
DESCRIPTION
The GetOSTrapAddress function returns the address of the Operating System routine specified by thetrapNum
parameter. If the desired Operating System routine is not supported on the installed system software, the GetOSTrapAddress function returns the address of theUnimplemented
procedure. ThetrapNum
parameter should contain a trap number in bits 0-7. GetOSTrapAddress masks the irrelevant high-order bits.A
GetOSTrapAddress(trapNum)
function call performs the same operation as aNGetTrapAddress(trapNum,
OSTrap)
function call.SEE ALSO
For more information about theUnimplemented
procedure, see page 8-29. For information about theNGetTrapAddress
function, see page 8-27.