Like CornedBee said:
pYMI->Init(someValue, otherValue, UserCallback);
Just pass in the function as a parameter in the Init Function.

Z.