Hook functions class in offset (from .exe in a .dll)
<p>I have a <strong>.exe</strong> application and I need to create some customizations to this executable, so I need to hook a dll in it for the changes to be loaded. Until then, everyone knows.</p>

<p><strong>The scenario is this:</strong>
Hook(0xOffset, &amp;myClass::myFunc);</p>

<p>There is a class in .exe that I need to rewrite completely and I've done that in my dll, but I'm having trouble with the hook of the functions of class, they aren't static. I've read many topics and I could not implement it with any method presented. In some cases, the compiler will not accept, in others cases has accepted but the .exe could not find the actual address of the function.</p>

<p>A friend gave me a solution, but it is a little confusing to understand how I can call the function there and from what I saw would be very big in my source code and many <em>loops</em>, so to speak.</p>

<p>Could help me?</p>