libPeConv
A library to load, manipulate, dump PE files.
Loading...
Searching...
No Matches
libpeconv
include
peconv
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
11
namespace
peconv
{
12
16
typedef
enum
{
17
PE_DUMP_AUTO
= 0,
18
PE_DUMP_VIRTUAL
,
19
PE_DUMP_UNMAP
,
20
PE_DUMP_REALIGN
,
21
PE_DUMP_MODES_COUNT
22
}
t_pe_dump_mode
;
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
peconv::ExportsMapper
Definition
exports_mapper.h:61
exports_mapper.h
A definition of ExportsMapper class. Creates a lookup of all the exported functions from the supplied...
peconv
Definition
buffer_util.h:15
peconv::t_pe_dump_mode
t_pe_dump_mode
Definition
pe_dumper.h:16
peconv::PE_DUMP_REALIGN
@ PE_DUMP_REALIGN
Definition
pe_dumper.h:20
peconv::PE_DUMP_MODES_COUNT
@ PE_DUMP_MODES_COUNT
Definition
pe_dumper.h:21
peconv::PE_DUMP_UNMAP
@ PE_DUMP_UNMAP
Definition
pe_dumper.h:19
peconv::PE_DUMP_AUTO
@ PE_DUMP_AUTO
Definition
pe_dumper.h:17
peconv::PE_DUMP_VIRTUAL
@ PE_DUMP_VIRTUAL
Definition
pe_dumper.h:18
peconv::detect_dump_mode
t_pe_dump_mode detect_dump_mode(IN const BYTE *buffer, IN size_t buffer_size)
Definition
pe_dumper.cpp:13
peconv::dump_pe
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
Generated on Sat Nov 2 2024 22:08:24 for libPeConv by
1.12.0