Type Alias ilhook::x64::JmpToAddrRoutine
source · pub type JmpToAddrRoutine = unsafe extern "win64" fn(regs: *mut Registers, ori_func_ptr: usize, user_data: usize);
Expand description
This is the routine used in a jmp-addr hook
, which means the RIP will jump to the specified
address after the routine has finished running.
Parameters
regs
- The registers.ori_func_ptr
- The original function pointer. Call this after converting it to the original function type.user_data
- User data that was previously passed toHooker::new
.