libPeConv
A library to load, manipulate, dump PE files.
Loading...
Searching...
No Matches
peconv::default_func_resolver Class Reference

#include <function_resolver.h>

Inheritance diagram for peconv::default_func_resolver:

Public Member Functions

virtual FARPROC resolve_func (LPCSTR lib_name, LPCSTR func_name)
 
virtual HMODULE load_library (LPCSTR lib_name)
 

Public Attributes

std::map< std::string, HMODULE > nameToModule
 

Detailed Description

A default functions resolver, using LoadLibraryA and GetProcAddress.

Definition at line 30 of file function_resolver.h.

Member Function Documentation

◆ load_library()

HMODULE peconv::default_func_resolver::load_library ( LPCSTR lib_name)
virtual

Load the DLL using LoadLibraryA.

Parameters
lib_name: the name of the DLL
Returns
base of the loaded module

Definition at line 16 of file function_resolver.cpp.

Here is the call graph for this function:

◆ resolve_func()

FARPROC peconv::default_func_resolver::resolve_func ( LPCSTR lib_name,
LPCSTR func_name )
virtual

Get the address (VA) of the function with the given name, from the given DLL, using LoadLibraryA and GetProcAddress.

Parameters
func_name: the name of the function
lib_name: the name of the DLL
Returns
Virtual Address of the exported function

Implements peconv::t_function_resolver.

Reimplemented in peconv::export_based_resolver, and peconv::hooking_func_resolver.

Definition at line 36 of file function_resolver.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ nameToModule

std::map<std::string, HMODULE> peconv::default_func_resolver::nameToModule

Definition at line 47 of file function_resolver.h.


The documentation for this class was generated from the following files: