Crate winhooker

source ·

Structs§

  • a memory allocation
  • a hook that was placed on some function
  • a hook that was prepared to be placed on some function
  • a static hook which can be used to store hook information as a static variable so that it can easily be accessed from anywhere. the generic argument F should be a function pointer signature of the hooked function (e.g extern "C" fn(i32) -> i32).
  • a winapi error

Enums§

  • an error that occurs while hooking a function

Functions§

  • allocates and builds the trampoline to a heap allocated executable memory region.
  • hooks the function with the given fn_addr from the given module such that when the function is called it instead jumps to the given hook_to_addr.
  • 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.
  • returns a slice which represents the possible content of the function at the given address in the given module.
  • prepares a hook to be placed on the given fn_addr from the given module, but doesn’t actually put the hook on the function.

Type Aliases§

  • the result of hooking a function