Important: The information in this document is obsolete and should not be used for new development.
CallUniversalProc
You can use theCallUniversalProc
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
TheCallUniversalProc
function executes the routine associated with the specified universal procedure pointer. You passCallUniversalProc
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 typelong
that contains the result (if any) returned by the called routine.SPECIAL CONSIDERATIONS
If the universal procedure pointer passed toCallUniversalProc
is the address
of the routine descriptor, that routine descriptor must already exist before you callCallUniversalProc
. If you pass the address of an invalid routine descriptor toCallUniversalProc
, a system error will occur.