I have an application that makes use of Direct 3D to draw several things onto the screen. I'm looking to inject a DLL and hook a low level direct 3d function so I can record the screen and eventually convert it to a video file.
My question really is; what should I be hooking into? I suppose I need to do it where Direct 3D writes to the framebuffer. I'm looking at exports from d3dx9_41 but can't really seem to find a suitable function.
Any help is much appreciated :)
edit:
Perhaps this is the best way?
- Hook CreateDevice
- Use my own calls to Present()