What are the steps I would need to take to hook Present/EndScene, so I can draw?
Patch the Vtable
OMG. A new computer vocabulary word...what is a VTable?
Virtual Table. Its a table of function that a class inherits.
When one class say called Dog is derived from the base class Animal, it can call all the inheritable methods and access all the inheritable data Animal can. This list of virtual functions is stored in memory as a pointer at the beginning of the class structure. Whenever Dog calls a function it inherited from Animal, or one it has overridden the vtable is used.
Nice explanation. Question though, do I need to find the Device Pointer or is this method completely different?
Originally Posted by aanthonyz
Nice explanation. Question though, do I need to find the Device Pointer or is this method completely different?
VTable is hooked to find the pattern for device pointer.
Go look at the hook in whit's base v3. notice how it finds the device pointer to use VTable in hook.
or you can simply create a normal device... .. hmm i think i should got the code here, but you can create the temporary device and get the pointer from it.