EasyHook - works for COM/ocx?

Oct 14, 2009 at 2:04 PM
Edited Oct 14, 2009 at 3:08 PM

Can this be used for COM libraries (ocx files) as well as standard Win32 calls?

We are wanting a way to replace an ocx with our own from C#, or hook into it.

Any examples of using EasyHook to do this?

Oct 22, 2009 at 7:24 PM

I've been able to hook into CoCreateInstance in ole32.dll, and see when my target application loads different COM objects.

Now I'm trying to replace an object with a particular CLSID with my own, and it seems that the COM object I want to replace doesn't go through CoCreateInstance...

You can see my question on StackOverflow here: http://stackoverflow.com/questions/1608707/c-easyhook-cocreateinstance

Does anyone know a better way to go about this?  Or a way to hook into an instance method instead of 

Dec 2, 2009 at 8:31 PM

Discovered it is just easier to write a CLR COM object to be called by the target application.

This, sadly requires rewriting the entire COM interface.

Aug 8, 2010 at 5:50 PM

Take a look here http://stuani.blogspot.com/2010/01/ifileoperation-hook-under-vistaseven.html

COM Object is hooked by madCodeHook's function HookCode. I am wondering, Can Easyhook's InstallHook also do this?

Apr 13, 2014 at 3:37 PM
Edited Apr 13, 2014 at 3:38 PM
snapik wrote:
Take a look here http://stuani.blogspot.com/2010/01/ifileoperation-hook-under-vistaseven.html COM Object is hooked by madCodeHook's function HookCode. I am wondering, Can Easyhook's InstallHook also do this?
Does anyone solve this issue?

madCodeHook can be done with. I can not with EasyHook