libPeConv
A library to load, manipulate, dump PE files.
|
#include <hooks.h>
Public Member Functions | |
void | add_hook (const std::string &name, FARPROC function) |
void | replace_dll (std::string dll_name, const std::string &new_dll) |
virtual FARPROC | resolve_func (LPCSTR lib_name, LPCSTR func_name) |
A functions resolver that can be used for hooking IAT. Allows for defining functions that are supposed to be replaced.
Get the address (VA) of the function with the given name, from the given DLL. If the function was hooked, it retrieves the address of the replacement function instead.
func_name | : the name of the function |
lib_name | : the name of the DLL |
Reimplemented from peconv::default_func_resolver.
Definition at line 81 of file hooks.cpp.