libPeConv
A library to load, manipulate, dump PE files.
Loading...
Searching...
No Matches
pe_dumper.h
Go to the documentation of this file.
1
6#pragma once
7
8#include <windows.h>
9#include "exports_mapper.h"
10
11namespace peconv {
12
23
29 t_pe_dump_mode detect_dump_mode(IN const BYTE* buffer, IN size_t buffer_size);
30
40 bool dump_pe(
41 IN LPCTSTR outputFilePath,
42 IN OUT BYTE* buffer,
43 IN size_t buffer_size,
44 IN const ULONGLONG module_base,
45 IN OUT t_pe_dump_mode &dump_mode,
46 IN OPTIONAL const peconv::ExportsMapper* exportsMap = nullptr
47 );
48
49};// namespace peconv
A definition of ExportsMapper class. Creates a lookup of all the exported functions from the supplied...
t_pe_dump_mode
Definition pe_dumper.h:16
@ PE_DUMP_REALIGN
Definition pe_dumper.h:20
@ PE_DUMP_MODES_COUNT
Definition pe_dumper.h:21
@ PE_DUMP_UNMAP
Definition pe_dumper.h:19
@ PE_DUMP_AUTO
Definition pe_dumper.h:17
@ PE_DUMP_VIRTUAL
Definition pe_dumper.h:18
t_pe_dump_mode detect_dump_mode(IN const BYTE *buffer, IN size_t buffer_size)
Definition pe_dumper.cpp:13
bool dump_pe(IN LPCTSTR outputFilePath, IN OUT BYTE *buffer, IN size_t buffer_size, IN const ULONGLONG module_base, IN OUT t_pe_dump_mode &dump_mode, IN OPTIONAL const peconv::ExportsMapper *exportsMap=nullptr)
Definition pe_dumper.cpp:25