Function winhooker::hook_function_by_name
source · pub fn hook_function_by_name(
library_name: PCSTR,
fn_name: PCSTR,
hook_to_addr: usize
) -> Result<Hook>Expand description
hooks the function with the fn_name from the library with the provided library_name such that when the function is called it instead jumps
to the given hook_to_addr.