static ComponentResult callOurFunction(LPVOID proc, ProcInfoType type, ComponentParameters * cp) { ComponentRoutineUPP myUUP; ComponentResult result; myUUP = NewComponentFunctionUPP(proc, type); result = CallComponentFunction(cp, myUUP); DisposeComponentFunctionUPP(myUUP); return result; }
static ComponentResult CallBIMFunction( ComponentParameters *inParams, ProcPtr inProcPtr, SInt32 inProcInfo ) { ComponentResult result; ComponentFunctionUPP componentFunctionUPP; result = noErr; componentFunctionUPP = NewComponentFunctionUPP( inProcPtr, inProcInfo ); result = CallComponentFunction( inParams, componentFunctionUPP ); DisposeComponentFunctionUPP( componentFunctionUPP ); return result; }