I have to set up a pointer to a library function (IHTMLDocument2::write
) which is a method of the class IHTMLDocument2
. (for the curious: i have to hook that function with Detours)
I can't do this directly, because of type mismatch, neither can I use a cast (reinterpret_cast<>
which is the "right one" afaik doesn't work)
Here's what I am doing:
HRESULT (WINAPI *Real_IHTMLDocument2_write)(SAFEARRAY *) = &IHTMLDocument2::write
Thanks for your help!