Ejemplo n.º 1
0
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;
}
Ejemplo n.º 2
0
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;
}