This would be great but how do you do with COM objects. What did you do for your direct3d hooking.
I remember someone on the ReactOS team gave me the hook related stuff. (I cant remember who) What I do is to modify the target to load the hook dll instead of the normal dll. The hook dll then loads the normal dll and hooks whatever direct3d functions you like...