Quote:
Originally Posted by Spirit_12
Hopefully you folks can help me here. I was just trying to recreate a function from Downtown to plugin using Dhooks Detours.
[...]
I'm assuming that either my return type is wrong or my add parameter needs a switch. Either that or function has no return value and if that's the case then how do I stop its execution.
|
The one thing that stands out for me is that the value it's spitting out isn't a handle.
Looking through the code, you specified a
ThisPointerType of
ThisPointer_Address but didn't use a callback prototype that references it like so:
Code:
function MRESReturn (Address pThis, Handle hReturn, Handle hParams);
If you don't need the
this pointer, you should instantiate using
ThisPointer_Ignore instead, which will omit pushing the
this to your callback. (The extension has no way to see what the callback takes as its arguments; you only get the compile-time check that it matches one of the ones specified as a
DHookCallback.)
__________________