I have a 3rd-party DLL that exposes a bunch of functions. I want to
intercept calls into that DLL to add some processing of my own before and
after the 3rd-party DLL has a chance to execute.
I seem to recall seeing an article (either in MSDN Magazine or CODE
Magazine) that said that Microsoft now had a supported API for doing this
sort of thing, but I can't track down the API. Any suggestions?
(BTW, I'm posting this here because this seems to me to be the sort of thing
a debugger guru would know something about. Maybe I'm in a completely wrong
NG...)
> I have a 3rd-party DLL that exposes a bunch of functions. I want to
> intercept calls into that DLL to add some processing of my own before and
> after the 3rd-party DLL has a chance to execute.
>
> I seem to recall seeing an article (either in MSDN Magazine or CODE
> Magazine) that said that Microsoft now had a supported API for doing this
> sort of thing, but I can't track down the API.
That API may be Detours:
http://research.microsoft.com/sn/detours
http://www.microsoft.com/about/legal/en/us/IntellectualProperty/IPLicensing/Programs/Detours.aspx
Seems a bit expensive though.