ive searched high and low and all ive come up with are 2 tutorials in ASM. i figured id give it a try and wrote the loader/hook dll and ive done about 95% but i cant figure out 1 last part.

i was wondering if anyone has a complete and working directx hook or atleast a tutorial/reference that can assist me in completing this. the tutorials i have are both missing several parts and barely compile.

the part im confused/stuck at is the actual injecting of the proxy commands in the virtual address space of the target process. what i did was, i created a system hook and used VirtualProtect to get readwrite access to the addresses for the EndScene() and Release() calls but i cant seem to 'override' them with my own functions.

im pretty sure the addresses i have are right but it just wont work.