-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExecutable.hpp
More file actions
45 lines (36 loc) · 877 Bytes
/
Copy pathExecutable.hpp
File metadata and controls
45 lines (36 loc) · 877 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#pragma once
#include <stdint.h>
#include <cstddef>
#include "COFFHeader.hpp"
#include "OptionalHeader.hpp"
#include "SectionEntry.hpp"
#include "Buffer.hpp"
#include "Defines.hpp"
class Executable {
public:
Executable();
virtual ~Executable();
void parse(Buffer buffer);
void relocate(void* address);
COFFHeader* getCoffHeader() const {
return coff_header;
}
unsigned char* getMsdosStub() const {
return msdos_stub;
}
OptionalHeader* getOptionalHeader() const {
return optional_header;
}
SectionEntry* getSectionTable() const {
return section_table;
}
char* getSignature() const {
return signature;
}
private:
unsigned char* msdos_stub;
char* signature;
COFFHeader* coff_header;
OptionalHeader* optional_header;
SectionEntry* section_table;
};