I set myself a new task, which includes "spying" on COM objects.
Even if you are not running COM, you are probably familiar with API connection methods, where you can connect to an imported function and execute your own code before calling the original. Capturing the API is somewhat complicated, but it quickly becomes messy (too messy for production IMO code) if you try to connect to COM object methods.
So, for now, to do "my job", I have installed the API for CoCreateInstance, and I am sending handwritten proxies for the interfaces that interest me. Now that there are not many interfaces, but these are not the most suitable solutions.
Is there a way to do this in a more neat way, preferably without using an API connection?
In another note, this article seems to work great http://www.ddj.com/windows/184416546?pgno=5 , but the binary doesn't work anymore (I think it was written around Win98 time). Does anyone know its insides and can point me in the right direction to make it work again?
thanks
windows com hook
georgiosd
source share