Advanced Search
Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

Previous Book Contents Book Index Next

Inside Macintosh: Operating System Utilities /
Chapter 8 - Trap Manager / Trap Manager Reference
Routines / Accessing Addresses From the Trap Dispatch Tables


GetOSTrapAddress

You can use the GetOSTrapAddress 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 the trapNum parameter. If the desired Operating System routine is not supported on the installed system software, the GetOSTrapAddress function returns the address of the Unimplemented procedure. The trapNum 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 a NGetTrapAddress(trapNum, OSTrap) function call.

SEE ALSO
For more information about the Unimplemented procedure, see page 8-29. For information about the NGetTrapAddress function, see page 8-27.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996

Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2004 Apple Computer, Inc.
All rights reserved. | Terms of use | Privacy Notice