tags:

views:

74

answers:

3

Hello, is there any way to "listen" to when a function of a dll is called?

I would like to know what functions of a dll is called and the parameters etc....

is it possible?

thanks!

A: 

If you want to "listen" to WinAPI (assuming) calls (for example user32.dll, gdi32.dll, etc.) made by 3rd party programs, you want to hook (detour) those calls. If this is the case, I suggest you to visit EasyHook project page.

Also, remember you need some sort of IPC method between the two processes. Boost's message_queue has been proven to be quite handy.

nhaa123
thaks, but it's not for winapi... it's for a custom made dll
Bruno
A: 

There is one great debugger that might help you out: OllyDbg.

It is quite tedious to use but with no source in the hands, it is something quite useful.

jdehaan
And it is free, I forgot to mention it.
jdehaan
+1  A: 

Check out WinApiOverride32. This is a really powerful monitor, with support of COM and .NET and easily customizable (you can monitor DLL internal functions as well). Also, you can write a custom DLL to override some APIs called by the target.

atzz