Function create_hook_raw

Source
pub unsafe fn create_hook_raw(
    target: *const (),
    detour: *const (),
) -> Result<*const (), HookStatus>
Expand description

Creates a hook for the specified target function in disabled state.

Returns a pointer to the trampoline function, which will be used to call the original target function.

ยงSafety

Target and detour must point to valid functions and have the same or a compatible function signature.