[Help] D3D Hook

Posts 1–3 of 3 · Page 1 of 1
[Help] D3D Hook
Any tutorial on EndScene hook D3D?

Target: Gunbound 2D
Compiler: C++
Countless tutorials are available online. Search.

The basic steps are:

1. Get the IDirect3DDevice9 address;
2. Get the Virtual Table pointer from the Device;
3. Make the 42nd index (EndScene's index) from the Virtual Table point to your hook function. Dont forget to save the old pointer.
4. Inside your Hooked EndScene call the original EndScene again so that the rendering is not broken.

Also, C++ is a programming language, not a "compiler".
Quote Originally Posted by richard1994x2 View Post
Any tutorial on EndScene hook D3D?

Target: Gunbound 2D
Compiler: C++
Most anti-cheats detect D3D hooks, so you might have to also implement a bypass(only if Gunbound has an anti-cheat).

What InSaNe said is pretty much it. You're basicly re-routing the "flow" of the program to do something, and then re-routing back.
Posts 1–3 of 3 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?