Hi

Hi,
I just updated DDL to allow hooking Delphi Interfaces by MethodName .
As you probably know : hooking with MethodIndex is somehow difficult because you need to count all parents interfaces methods.
The basic idea is simple:
-Get object from Interface =>this is achieved by InterfaceToObj function.
-Using RTTI to get method pointer inside that object.
-Finaly , Insert the hook.

NB: This method will works only with interfaces created by Delphi.
For others interfaces you must use the HookByMethodIndex way!
https://code.google.com/p/delphi-detours-library/
https://code.google.com/p/delphi-detours-library

Comments

Post a Comment