LIEF: Library to Instrument Executable Formats
Version 0.15.1
Loading...
Searching...
No Matches
install
linux
x86_64
sdk
static
include
LIEF
PE
DosHeader.h
Go to the documentation of this file.
1
/* Copyright 2017 - 2024 R. Thomas
2
* Copyright 2017 - 2024 Quarkslab
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
#ifndef C_LIEF_PE_DOS_HEADER_H_
17
#define C_LIEF_PE_DOS_HEADER_H_
18
#include <inttypes.h>
19
20
#include "
LIEF/ELF/enums.h
"
21
22
#ifdef __cplusplus
23
extern
"C"
{
24
#endif
25
26
struct
Pe_DosHeader_t
{
27
uint16_t
magic
;
28
uint16_t
used_bytes_in_last_page
;
29
uint16_t
file_size_in_pages
;
30
uint16_t
numberof_relocation
;
31
uint16_t
header_size_in_paragraphs
;
32
uint16_t
minimum_extra_paragraphs
;
33
uint16_t
maximum_extra_paragraphs
;
34
uint16_t
initial_relative_ss
;
35
uint16_t
initial_sp
;
36
uint16_t
checksum
;
37
uint16_t
initial_ip
;
38
uint16_t
initial_relative_cs
;
39
uint16_t
addressof_relocation_table
;
40
uint16_t
overlay_number
;
41
uint16_t
reserved
[4];
42
uint16_t
oem_id
;
43
uint16_t
oem_info
;
44
uint16_t
reserved2
[10];
45
uint32_t
addressof_new_exeheader
;
46
};
47
48
typedef
struct
Pe_DosHeader_t
Pe_DosHeader_t
;
49
50
51
#ifdef __cplusplus
52
}
53
#endif
54
55
#endif
enums.h
Pe_DosHeader_t
Definition
DosHeader.h:26
Pe_DosHeader_t::oem_id
uint16_t oem_id
Definition
DosHeader.h:42
Pe_DosHeader_t::checksum
uint16_t checksum
Definition
DosHeader.h:36
Pe_DosHeader_t::oem_info
uint16_t oem_info
Definition
DosHeader.h:43
Pe_DosHeader_t::file_size_in_pages
uint16_t file_size_in_pages
Definition
DosHeader.h:29
Pe_DosHeader_t::initial_relative_ss
uint16_t initial_relative_ss
Definition
DosHeader.h:34
Pe_DosHeader_t::reserved2
uint16_t reserved2[10]
Definition
DosHeader.h:44
Pe_DosHeader_t::header_size_in_paragraphs
uint16_t header_size_in_paragraphs
Definition
DosHeader.h:31
Pe_DosHeader_t::maximum_extra_paragraphs
uint16_t maximum_extra_paragraphs
Definition
DosHeader.h:33
Pe_DosHeader_t::minimum_extra_paragraphs
uint16_t minimum_extra_paragraphs
Definition
DosHeader.h:32
Pe_DosHeader_t::numberof_relocation
uint16_t numberof_relocation
Definition
DosHeader.h:30
Pe_DosHeader_t::addressof_new_exeheader
uint32_t addressof_new_exeheader
Definition
DosHeader.h:45
Pe_DosHeader_t::used_bytes_in_last_page
uint16_t used_bytes_in_last_page
Definition
DosHeader.h:28
Pe_DosHeader_t::magic
uint16_t magic
Definition
DosHeader.h:27
Pe_DosHeader_t::reserved
uint16_t reserved[4]
Definition
DosHeader.h:41
Pe_DosHeader_t::initial_sp
uint16_t initial_sp
Definition
DosHeader.h:35
Pe_DosHeader_t::overlay_number
uint16_t overlay_number
Definition
DosHeader.h:40
Pe_DosHeader_t::initial_ip
uint16_t initial_ip
Definition
DosHeader.h:37
Pe_DosHeader_t::initial_relative_cs
uint16_t initial_relative_cs
Definition
DosHeader.h:38
Pe_DosHeader_t::addressof_relocation_table
uint16_t addressof_relocation_table
Definition
DosHeader.h:39
Generated by
1.11.0