How to listen to dll function calls

2020-07-20 03:46发布

问题:

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!

回答1:

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.



回答2:

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.



回答3:

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.



标签: c++ dll system