[−][src]Type Definition ilhook::x64::JmpToRetRoutine
type JmpToRetRoutine = unsafe extern "sysv64" fn(regs: *mut Registers, ori_func_ptr: usize, src_addr: usize) -> usize;
The routine used in a jmp-ret hook
, which means the EIP will jump to the return
value of the Routine.
Arguments
- regs - The registers
- ori_func_ptr - Original function pointer. Call it after converted to the original function type.
- src_addr - The address that has been hooked
Return the address you want to jump to.