Raised This Month: $ Target: $400
 0% 

DHooks (Dynamic Hooks - Dev Preview)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 08-10-2018 , 22:54   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #11

Quote:
Originally Posted by nosoop View Post
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.)
I hear you on the callback prototype. Going to fix that part. That actually did the trick. I'll post the final code after I'm done testing.
__________________

Last edited by Spirit_12; 08-10-2018 at 23:43.
Spirit_12 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:58.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode