Function create_hook_enabled

Source
pub fn create_hook_enabled<F, D>(
    target: F,
    detour: D,
) -> Result<*const (), HookStatus>
where F: Function + HookableWith<D>, D: Function,
Expand description

Creates a hook for the specified target function, and enables it if successful.

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