IWRedirectVTMMethod

<< Click to Display Table of Contents >>

Navigation:  Functions >

IWRedirectVTMMethod

SIGNATURE=IW.Common.Platform.IWRedirectVTMMethod@TClass@Pointer@Pointer

 

ETYPE=Function

 

Declaration:

Delphi:

function IWRedirectVTMMethod(AClass: TClass; OldMethod: Pointer; NewMethod: Pointer): Boolean;

C++:

bool IWRedirectVTMMethod(TClass AClass, void * OldMethod, void * NewMethod);

 

Unit: IW.Common.Platform.pas

 

Description: IWRedirectVTMMethod allow patching virtual methods of a class. Method must be trully virtual, i.e. it won't work with dynamic methods. Patched virtual methods can still call ancestor methods through regular "inherited" call

 

Parameters:

 

•AClass: TClass

 

•OldMethod: Pointer

 

•NewMethod: Pointer

 

Result(Boolean):