LIEF: Library to Instrument Executable Formats Version 0.15.0
Loading...
Searching...
No Matches
DosHeader.h
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
23extern "C" {
24#endif
25
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
48typedef struct Pe_DosHeader_t Pe_DosHeader_t;
49
50
51#ifdef __cplusplus
52}
53#endif
54
55#endif
Definition DosHeader.h:26