c++ - Find offset exported function in DLL file -


in order apply hot fixes dll used 'loadlibrary' , 'getprocaddress' find base address , offset of exported function in dll. example:

// use handle base address base = loadlibrary(...);  // offset relative base offset = getprocaddress(...); 

and using way:

// calculate offset in file offsetinfile = offset - base;  // apply hotfix in file patchexportedfunction(offsetinfile, "mydll.dll"); 

this worked fine far - have problem there dlls different in way calculated offset not match offset in file anymore.

obviously approach finding function simple have no clue i'm missing , why works of time not always.

maybe has idea?


Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -