I have read these questions and answers
How to change the implementation (detour) of an externally declared function
but i can't figere out how patch a private method of a class located in anoher unit.
Check this sample I want to patch the Bar
procedure.
Unit ThidParty;
Interface
Type
TFoo =Class
private
procedure Bar;
end;
I think which the key is find a way to obtain the address of the private method.
So, How I can patch a private method of a delphi class?