Carbon


CallUniversalProc

Header: MixedMode.h Carbon status: Unsupported

Calls the routine associated with a universal procedure pointer.

SInt32 CallUniversalProc (
    UniversalProcPtr theProcPtr, 
    ProcInfoType procInfo, 
    ProcInfoType theProcInfo,
    ...
);
theProcPtr

A universal procedure pointer.

procInfo

The procedure information associated with the routine specified by the theProcPtr parameter.

theProcInfo
function result

A long that contains the result (if any) returned by the theProcPtr routine.

DISCUSSION

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.

AVAILABILITY

Not supported in Carbon. Not available in CarbonLib, but available when InterfaceLib 7.1 or later is installed. Exported by InterfaceLib 7.1 and later.


© 2000 Apple Computer, Inc. — (Last Updated 4/14/2000)