Discussion:
Detoure directx present function
(too old to reply)
Mayur
2006-09-11 11:25:45 UTC
Permalink
Hi,

is it possible to detour a function that is present inside a class. like
directx device has got Present. how do you detour itI want to detoure that
function can anyone send me code snippet for thae

regards
Mayur
Vladimir Scherbina
2006-09-11 14:08:16 UTC
Permalink
Mayur,

I do not fully understand how your question refers to wininet technology,
but I will try to answer. Class function can also be hooked just like any
other function.

The only difference between stand-alone function and class function is that
class function retireives from ECX register "this" pointer to access the
data of class, so hooking function should store ecx value before modifying
it and then restore it before passing control to hooked code.

I did not used detour to perform functions hooking - I did it myself, so I
cant suggest you samples, etc. Google for it and you will find what you
need.
--
Vladimir
Post by Mayur
Hi,
is it possible to detour a function that is present inside a class. like
directx device has got Present. how do you detour itI want to detoure that
function can anyone send me code snippet for thae
regards
Mayur
Loading...