Page 1 of 1

API Hook?

Posted: Sat Jul 17, 2004 3:03 am
by Chiyo
Hi,

How to realize about hooking a specified function in PB?
for Example, hook a MCI call to my own Media playing function.

Instead of playing CD Audio Tracks, I want to replace it with
playing OGG, is it a complex job?

Thanks.

Posted: Sat Jul 17, 2004 5:38 am
by PolyVector
My company (Skunksoft) has a library in-the-works that can do just that... It will intercept any function in the same address space as your program and rout it to your own version of the function... It can also do things like inject a DLL into a running process. With these two techniques applied together, it is possible to write a program that hooks all calls to a function made by all programs on the host computer...

Right now this project is low on our priority list...
If there is enough interest from people on this forum, we will consider finishing it up and releasing it in the comming weeks...

Posted: Sat Jul 17, 2004 11:28 am
by newbie
Of course it would be great :)

Posted: Sun Jul 18, 2004 9:41 am
by PolyVector
It seems there's not a lot of interest?...
It will still get released sooner or later :)

Posted: Sun Jul 18, 2004 11:39 am
by newbie
it's sad... :cry:

you can still release the source code anyway ;)

Posted: Sun Jul 18, 2004 12:42 pm
by thefool
well i would love to play with it :)

..

Posted: Sun Jul 18, 2004 5:29 pm
by NoahPhense
thefool wrote:well i would love to play with it :)
thats what she said...

- np

Posted: Sun Jul 18, 2004 5:36 pm
by thefool
hehe :D