libPeConv
A library to load, manipulate, dump PE files.
Loading...
Searching...
No Matches
Functions
pe_hdrs_helper.cpp File Reference
#include "peconv/pe_hdrs_helper.h"
#include "peconv/util.h"

Go to the source code of this file.

Functions

template<typename IMAGE_NT_HEADERS_T >
const IMAGE_FILE_HEADERfetch_file_hdr (IN const BYTE *payload, IN const size_t buffer_size, IN const IMAGE_NT_HEADERS_T *payload_nt_hdr)
 
template<typename IMAGE_NT_HEADERS_T >
const LPVOID fetch_opt_hdr (IN const BYTE *payload, IN const size_t buffer_size, IN const IMAGE_NT_HEADERS_T *payload_nt_hdr)
 
template<typename IMAGE_NT_HEADERS_T >
LPVOID fetch_section_hdrs_ptr (IN const BYTE *payload, IN const size_t buffer_size, IN const IMAGE_NT_HEADERS_T *payload_nt_hdr)
 
template<typename IMAGE_NT_HEADERS_T >
DWORD_get_sec_alignment_ptr (const BYTE *modulePtr, bool is_raw)
 

Function Documentation

◆ _get_sec_alignment_ptr()

DWORD * _get_sec_alignment_ptr ( const BYTE * modulePtr,
bool is_raw )

Definition at line 509 of file pe_hdrs_helper.cpp.

Here is the call graph for this function:

◆ fetch_file_hdr()

const IMAGE_FILE_HEADER * fetch_file_hdr ( IN const BYTE * payload,
IN const size_t buffer_size,
IN const IMAGE_NT_HEADERS_T * payload_nt_hdr )
inline

Definition at line 245 of file pe_hdrs_helper.cpp.

Here is the call graph for this function:

◆ fetch_opt_hdr()

const LPVOID fetch_opt_hdr ( IN const BYTE * payload,
IN const size_t buffer_size,
IN const IMAGE_NT_HEADERS_T * payload_nt_hdr )
inline

Definition at line 272 of file pe_hdrs_helper.cpp.

Here is the call graph for this function:

◆ fetch_section_hdrs_ptr()

LPVOID fetch_section_hdrs_ptr ( IN const BYTE * payload,
IN const size_t buffer_size,
IN const IMAGE_NT_HEADERS_T * payload_nt_hdr )
inline

Definition at line 304 of file pe_hdrs_helper.cpp.

Here is the call graph for this function: