Hook a C function

724 Views Asked by At

I want to hook the function AudioUnitInitialize to grab the Audio Unit of an application by injecting a bundle at the application start.
I found an example (http://pastie.org/1882125) but it uses the function MSHookFunction to replace the function names. The problem is that I want to replace the functions on Mac OS X, not on iOS.
Is there another way to hook C functions?

1

There are 1 best solutions below

2
On BEST ANSWER

If you look closely, you can find out that MobileSubstrate runs on OS X as well.