libPeConv
A library to load, manipulate, dump PE files.
Loading...
Searching...
No Matches
CollectImportsCallback Class Reference
Inheritance diagram for CollectImportsCallback:

Public Member Functions

 CollectImportsCallback (BYTE *_modulePtr, size_t _moduleSize, std::map< DWORD, ExportedFunc * > &_thunkToFunc)
virtual bool processThunks (LPSTR lib_name, ULONG_PTR origFirstThunkPtr, ULONG_PTR firstThunkPtr)
Public Member Functions inherited from peconv::ImportThunksCallback
 ImportThunksCallback (BYTE *_modulePtr, size_t _moduleSize)

Protected Member Functions

template<typename T_FIELD, typename T_IMAGE_THUNK_DATA>
bool processThunks_tpl (LPSTR lib_name, T_IMAGE_THUNK_DATA *desc, T_FIELD *call_via, T_FIELD ordinal_flag)

Protected Attributes

std::map< DWORD, ExportedFunc * > & thunkToFunc
Protected Attributes inherited from peconv::ImportThunksCallback
BYTE * modulePtr
size_t moduleSize
bool is64b

Detailed Description

Definition at line 112 of file imports_loader.cpp.

Constructor & Destructor Documentation

◆ CollectImportsCallback()

CollectImportsCallback::CollectImportsCallback ( BYTE * _modulePtr,
size_t _moduleSize,
std::map< DWORD, ExportedFunc * > & _thunkToFunc )
inline

Definition at line 115 of file imports_loader.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ processThunks()

virtual bool CollectImportsCallback::processThunks ( LPSTR libName,
ULONG_PTR origFirstThunkPtr,
ULONG_PTR firstThunkPtr )
inlinevirtual

A callback that will be executed by process_import_table when the next imported function was found

Parameters
libName: the pointer to the DLL name
origFirstThunkPtr: the pointer to the Original First Thunk
firstThunkPtr: the pointer to the First Thunk
Returns
: true if processing succeeded, false otherwise

Implements peconv::ImportThunksCallback.

Definition at line 120 of file imports_loader.cpp.

Here is the call graph for this function:

◆ processThunks_tpl()

template<typename T_FIELD, typename T_IMAGE_THUNK_DATA>
bool CollectImportsCallback::processThunks_tpl ( LPSTR lib_name,
T_IMAGE_THUNK_DATA * desc,
T_FIELD * call_via,
T_FIELD ordinal_flag )
inlineprotected

Definition at line 138 of file imports_loader.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ thunkToFunc

std::map<DWORD, ExportedFunc*>& CollectImportsCallback::thunkToFunc
protected

Definition at line 166 of file imports_loader.cpp.


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