subhook icon indicating copy to clipboard operation
subhook copied to clipboard

[Question] Support for Mid-Function Hooking?

Open SvarunSoda opened this issue 1 year ago • 0 comments

I was wondering whether it's possible, using this library, to hook into middle of functions instead of entirely replacing them, and view/edit the current state of the registers at the point of insertion.

There is a relatively new hooking library out there that can perform that behaviour, and I was wondering whether it's possible to do a simillar thing with this one. It appears that subhook_install can only be used to replace the functions entirely, or execute the original code via the trampoline, but not hooking in the middle of functions.

SvarunSoda avatar Apr 10 '24 18:04 SvarunSoda