Know anybody something about hooking __usercall
type of functions?
I hooking successfully __thiscall
, __stdcall
and __cdecl
calls but this is enough for me.
Know anybody hooking library for __usercall
's or how to hook this type of functions using translation to __stdcall
or __cdecl
?
Function what i must hook at first is:
int __usercall func<eax>(int a<eax>, int b<ecx>, int c, unsigned int d, signed int e);
When all else fails.. walk through it with a debugger.
In particular take note of these like the ESP when you enter the call, and then again just before the function returns..
Use a wrapper which will convert it to
__stdcall
.