libPeConv
A library to load, manipulate, dump PE files.
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Functions
relocate.h File Reference

Operating on PE file's relocations table. More...

#include <windows.h>
#include <unordered_set>
#include "peconv/buffer_util.h"

Go to the source code of this file.

Classes

struct  peconv::_BASE_RELOCATION_ENTRY
 
class  peconv::RelocBlockCallback
 
class  peconv::CollectRelocs
 

Namespaces

namespace  peconv
 

Typedefs

typedef struct peconv::_BASE_RELOCATION_ENTRY peconv::BASE_RELOCATION_ENTRY
 

Functions

bool peconv::process_relocation_table (IN PVOID modulePtr, IN SIZE_T moduleSize, IN RelocBlockCallback *callback)
 
bool peconv::relocate_module (IN PBYTE modulePtr, IN SIZE_T moduleSize, IN ULONGLONG newBase, IN ULONGLONG oldBase=0)
 
bool peconv::has_valid_relocation_table (IN const PBYTE modulePtr, IN const size_t moduleSize)
 
bool peconv::virtual_addr_to_rva (IN const PBYTE imgBase, IN const size_t imgSize, IN ULONGLONG virtualAddr, OUT DWORD &outRVA, IN std::unordered_set< ULONGLONG > *relocs=nullptr)
 

Detailed Description

Operating on PE file's relocations table.

Definition in file relocate.h.