hoangprod / LeoSpecial-VEH-Hook

Vectored Exception Handling Hooking Class
GNU General Public License v3.0
145 stars 38 forks source link

How to call original function? #1

Open BadPlayer555 opened 5 years ago

BadPlayer555 commented 5 years ago

Hi I was wondering how to call the original function of the hooked function. I have tried create my get original function but it instantly crashed the application that I am trying to hook.

template<typename T> T LeoHook::GetOriginal() { return (T)og_fun; }

Tizzi commented 1 year ago

me too idk how to call original function. cuz when I call it ran in to infinite loop. which trigger the exception again. and redirect to my hook function and stuck in this loop

Tizzi commented 1 year ago

oh its simple to avoid the loop tho

kanadeblisst00 commented 1 year ago

oh its simple to avoid the loop tho

excuse me,how to avoid the loop tho?

Romain-P commented 3 weeks ago

Disable the exception handler before calling original, call original, re-enable