Bruno
Bruno

Reputation: 175

How to listen to dll function calls

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!

Upvotes: 3

Views: 3610

Answers (3)

atzz
atzz

Reputation: 18010

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.

Upvotes: 2

jdehaan
jdehaan

Reputation: 19928

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.

Upvotes: 0

nhaa123
nhaa123

Reputation: 9798

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.

Upvotes: 1

Related Questions