libPeConv
A library to load, manipulate, dump PE files.
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
CollectThunksCallback Class Reference
Inheritance diagram for CollectThunksCallback:
Inheritance graph
[legend]

Public Member Functions

 CollectThunksCallback (BYTE *_vBuf, size_t _vBufSize, std::set< DWORD > &_fields)
 
virtual bool processThunks (LPSTR libName, ULONG_PTR origFirstThunkPtr, ULONG_PTR va)
 
- Public Member Functions inherited from peconv::ImportThunksCallback
 ImportThunksCallback (BYTE *_modulePtr, size_t _moduleSize)
 
virtual ~ImportThunksCallback ()
 
virtual bool processThunks (LPSTR libName, ULONG_PTR origFirstThunkPtr, ULONG_PTR firstThunkPtr)=0
 

Public Attributes

std::set< DWORD > & fields
 
BYTE * vBuf
 
size_t vBufSize
 

Additional Inherited Members

- Protected Attributes inherited from peconv::ImportThunksCallback
BYTE * modulePtr
 
size_t moduleSize
 
bool is64b
 

Detailed Description

A class defining a callback that collects all the Import Thunks

Definition at line 88 of file imports_loader.cpp.

Constructor & Destructor Documentation

◆ CollectThunksCallback()

CollectThunksCallback::CollectThunksCallback ( BYTE *  _vBuf,
size_t  _vBufSize,
std::set< DWORD > &  _fields 
)
inline

Definition at line 91 of file imports_loader.cpp.

Member Function Documentation

◆ processThunks()

virtual bool CollectThunksCallback::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 97 of file imports_loader.cpp.

Member Data Documentation

◆ fields

std::set<DWORD>& CollectThunksCallback::fields

Definition at line 114 of file imports_loader.cpp.

◆ vBuf

BYTE* CollectThunksCallback::vBuf

Definition at line 115 of file imports_loader.cpp.

◆ vBufSize

size_t CollectThunksCallback::vBufSize

Definition at line 116 of file imports_loader.cpp.


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