C++ COM Object Hotpatching?
Background: I'm hooking on windows COM object. The method used is vtable modification. say we have an instance of interface A named instance , it contains oldmethod in the interface, I replaced with newmethod . However, in my newmethod I need to know the address of oldmethod so that I can call oldmethod after doing my own thing. It is not safe to store the address of oldmethod in a global variable, since there might be more than one implementation behind interface A , let's say there are two implementations, class A1 and class A2 . Thus my newmethod needs to store both A1->oldmethod and A2-