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: PowerPC System Software /
Chapter 2 - Mixed Mode Manager / Mixed Mode Manager Reference
Mixed Mode Manager Routines / Calling Routines via Universal Procedure Pointers


CallUniversalProc

You can use the CallUniversalProc function to call the routine associated with a universal procedure pointer.

long CallUniversalProc (UniversalProcPtr theProcPtr, 
                           ProcInfoType theProcInfo, ...);
theProcPtr
A universal procedure pointer.
theProcInfo
The procedure information associated with the routine specified by the theProcPtr parameter.
DESCRIPTION
The CallUniversalProc function executes the routine associated with the specified universal procedure pointer. You pass CallUniversalProc a universal procedure pointer (which may be either a 680x0 procedure pointer or the address of the routine descriptor), a set of procedure information, and a variable number of parameters that are passed to the routine. CallUniversalProc returns a result of type long that contains the result (if any) returned by the called routine.

SPECIAL CONSIDERATIONS
If the universal procedure pointer passed to CallUniversalProc is the address
of the routine descriptor, that routine descriptor must already exist before you call CallUniversalProc. If you pass the address of an invalid routine descriptor to CallUniversalProc, a system error will occur.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
3 JUL 1996