Re: directx 9 endscene hook
Posted: Thu Sep 19, 2013 5:51 am
Hey
Since Liqu asked me via PM to elaborate this a bit further, I might as well do it in this thread.
What you can do with this is basically hook the rendering process of a DirectX9 game.
You create a DLL, as shown in the example above, and then use a hooking tool (e.g. Winject)
to inject the DLL. This means that, any time the game calls one of the hooked functions,
the function in our DLL is called instead. This allows to draw over the screen of the game
and change its rendering parameters.
When I tried this back then, I played with the settings to change the scene rendering to
wireframe mode and things like that, it was pretty fun.
Unfortunately I can't test if it still works. I am currently in China and at the moment a little
limited in terms of computers / games / PB.
I still hope this helps a little.
Since Liqu asked me via PM to elaborate this a bit further, I might as well do it in this thread.

What you can do with this is basically hook the rendering process of a DirectX9 game.
You create a DLL, as shown in the example above, and then use a hooking tool (e.g. Winject)
to inject the DLL. This means that, any time the game calls one of the hooked functions,
the function in our DLL is called instead. This allows to draw over the screen of the game
and change its rendering parameters.
When I tried this back then, I played with the settings to change the scene rendering to
wireframe mode and things like that, it was pretty fun.

Unfortunately I can't test if it still works. I am currently in China and at the moment a little
limited in terms of computers / games / PB.
