Current location - Quotes Website - Signature design - If you hook a COM interface function with a detour.
If you hook a COM interface function with a detour.
Hook, a Com interface method, is actually a C signature function of Hook, and its first parameter is this.

Creates or gets the specified interface.

Then the function pointer of the interface method is obtained according to the offset. You can get the interface defined by C directly. The interface defined by C++ needs to calculate the offset.

This function pointer is the function that needs to be bypassed.