ReactOS 0.4.16-dev-292-gbbdcc14
pecoff.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _IMAGE_DOS_HEADER
 
struct  _IMAGE_FILE_HEADER
 
struct  _IMAGE_DATA_DIRECTORY
 
struct  _IMAGE_OPTIONAL_HEADER32
 
struct  _IMAGE_OPTIONAL_HEADER64
 
struct  _IMAGE_NT_HEADERS32
 
struct  _IMAGE_NT_HEADERS64
 
struct  _IMAGE_SECTION_HEADER
 
struct  _IMAGE_BASE_RELOCATION
 
struct  _IMAGE_RELOCATION
 
struct  _IMAGE_SYMBOL
 

Macros

#define IMAGE_NT_OPTIONAL_HDR32_MAGIC   0x010b
 
#define IMAGE_NT_OPTIONAL_HDR64_MAGIC   0x020b
 
#define IMAGE_DOS_MAGIC   0x5a4d
 
#define IMAGE_PE_MAGIC   0x00004550
 
#define IMAGE_SIZEOF_SHORT_NAME   8
 
#define IMAGE_FILE_LINE_NUMS_STRIPPED   0x0004
 
#define IMAGE_FILE_LOCAL_SYMS_STRIPPED   0x0008
 
#define IMAGE_FILE_DEBUG_STRIPPED   0x0200
 
#define IMAGE_FILE_MACHINE_I386   0x14c
 
#define IMAGE_FILE_MACHINE_AMD64   0x8664
 
#define IMAGE_FILE_MACHINE_IA64   0x0200
 
#define IMAGE_DIRECTORY_ENTRY_BASERELOC   5
 
#define IMAGE_SCN_TYPE_NOLOAD   0x00000002
 
#define IMAGE_SCN_TYPE_NO_PAD   0x00000008
 
#define IMAGE_SCN_CNT_CODE   0x00000020
 
#define IMAGE_SCN_CNT_INITIALIZED_DATA   0x00000040
 
#define IMAGE_SCN_CNT_UNINITIALIZED_DATA   0x00000080
 
#define IMAGE_SCN_LNK_OTHER   0x00000100
 
#define IMAGE_SCN_LNK_INFO   0x00000200
 
#define IMAGE_SCN_LNK_REMOVE   0x00000800
 
#define IMAGE_SCN_NO_DEFER_SPEC_EXC   0x00004000
 
#define IMAGE_SCN_GPREL   0x00008000
 
#define IMAGE_SCN_MEM_PURGEABLE   0x00020000
 
#define IMAGE_SCN_MEM_LOCKED   0x00040000
 
#define IMAGE_SCN_MEM_PRELOAD   0x00080000
 
#define IMAGE_SCN_LNK_NRELOC_OVFL   0x01000000
 
#define IMAGE_SCN_MEM_DISCARDABLE   0x02000000
 
#define IMAGE_SCN_MEM_NOT_CACHED   0x04000000
 
#define IMAGE_SCN_MEM_NOT_PAGED   0x08000000
 
#define IMAGE_SCN_MEM_SHARED   0x10000000
 
#define IMAGE_SCN_MEM_EXECUTE   0x20000000
 
#define IMAGE_SCN_MEM_READ   0x40000000
 
#define IMAGE_SCN_MEM_WRITE   0x80000000
 
#define IMAGE_SCN_ALIGN_1BYTES   0x00100000
 
#define IMAGE_SCN_ALIGN_2BYTES   0x00200000
 
#define IMAGE_SCN_ALIGN_4BYTES   0x00300000
 
#define IMAGE_SCN_ALIGN_8BYTES   0x00400000
 
#define IMAGE_SCN_ALIGN_16BYTES   0x00500000
 
#define IMAGE_SCN_ALIGN_32BYTES   0x00600000
 
#define IMAGE_SCN_ALIGN_64BYTES   0x00700000
 
#define IMAGE_SCN_ALIGN_128BYTES   0x00800000
 
#define IMAGE_SCN_ALIGN_256BYTES   0x00900000
 
#define IMAGE_SCN_ALIGN_512BYTES   0x00A00000
 
#define IMAGE_SCN_ALIGN_1024BYTES   0x00B00000
 
#define IMAGE_SCN_ALIGN_2048BYTES   0x00C00000
 
#define IMAGE_SCN_ALIGN_4096BYTES   0x00D00000
 
#define IMAGE_SCN_ALIGN_8192BYTES   0x00E00000
 
#define IMAGE_SCN_ALIGN_MASK   0x00F00000
 
#define IMAGE_NUMBEROF_DIRECTORY_ENTRIES   16
 
#define IMAGE_REL_I386_ABSOLUTE   0x0001
 
#define IMAGE_REL_I386_REL16   0x0002
 
#define IMAGE_REL_I386_DIR32   0x0006
 
#define UNALIGNED
 
#define IMAGE_DOS_SIGNATURE   0x5A4D
 
#define IMAGE_OS2_SIGNATURE   0x454E
 
#define IMAGE_OS2_SIGNATURE_LE   0x454C
 
#define IMAGE_VXD_SIGNATURE   0x454C
 
#define IMAGE_NT_SIGNATURE   0x00004550
 
#define IMAGE_FIRST_SECTION(h)   ((PIMAGE_SECTION_HEADER) ((ULONG_PTR)h+FIELD_OFFSET(IMAGE_NT_HEADERS,OptionalHeader)+((PIMAGE_NT_HEADERS)(h))->FileHeader.SizeOfOptionalHeader))
 

Typedefs

typedef struct _IMAGE_DOS_HEADER IMAGE_DOS_HEADER
 
typedef struct _IMAGE_DOS_HEADERPIMAGE_DOS_HEADER
 
typedef struct _IMAGE_FILE_HEADER IMAGE_FILE_HEADER
 
typedef struct _IMAGE_FILE_HEADERPIMAGE_FILE_HEADER
 
typedef struct _IMAGE_DATA_DIRECTORY IMAGE_DATA_DIRECTORY
 
typedef struct _IMAGE_DATA_DIRECTORYPIMAGE_DATA_DIRECTORY
 
typedef struct _IMAGE_OPTIONAL_HEADER32 IMAGE_OPTIONAL_HEADER32
 
typedef struct _IMAGE_OPTIONAL_HEADER32PIMAGE_OPTIONAL_HEADER32
 
typedef struct _IMAGE_OPTIONAL_HEADER64 IMAGE_OPTIONAL_HEADER64
 
typedef struct _IMAGE_OPTIONAL_HEADER64PIMAGE_OPTIONAL_HEADER64
 
typedef IMAGE_OPTIONAL_HEADER32 IMAGE_OPTIONAL_HEADER
 
typedef PIMAGE_OPTIONAL_HEADER32 PIMAGE_OPTIONAL_HEADER
 
typedef struct _IMAGE_NT_HEADERS32 IMAGE_NT_HEADERS32
 
typedef struct _IMAGE_NT_HEADERS32PIMAGE_NT_HEADERS32
 
typedef struct _IMAGE_NT_HEADERS64 IMAGE_NT_HEADERS64
 
typedef struct _IMAGE_NT_HEADERS64PIMAGE_NT_HEADERS64
 
typedef IMAGE_NT_HEADERS32 IMAGE_NT_HEADERS
 
typedef PIMAGE_NT_HEADERS32 PIMAGE_NT_HEADERS
 
typedef struct _IMAGE_SECTION_HEADER IMAGE_SECTION_HEADER
 
typedef struct _IMAGE_SECTION_HEADERPIMAGE_SECTION_HEADER
 
typedef struct _IMAGE_BASE_RELOCATION IMAGE_BASE_RELOCATION
 
typedef struct _IMAGE_BASE_RELOCATIONPIMAGE_BASE_RELOCATION
 
typedef struct _IMAGE_RELOCATION IMAGE_RELOCATION
 
typedef struct _IMAGE_RELOCATION UNALIGNEDPIMAGE_RELOCATION
 
typedef struct _IMAGE_SYMBOL IMAGE_SYMBOL
 
typedef struct _IMAGE_SYMBOL UNALIGNEDPIMAGE_SYMBOL
 

Macro Definition Documentation

◆ IMAGE_DIRECTORY_ENTRY_BASERELOC

#define IMAGE_DIRECTORY_ENTRY_BASERELOC   5

Definition at line 18 of file pecoff.h.

◆ IMAGE_DOS_MAGIC

#define IMAGE_DOS_MAGIC   0x5a4d

Definition at line 6 of file pecoff.h.

◆ IMAGE_DOS_SIGNATURE

#define IMAGE_DOS_SIGNATURE   0x5A4D

Definition at line 261 of file pecoff.h.

◆ IMAGE_FILE_DEBUG_STRIPPED

#define IMAGE_FILE_DEBUG_STRIPPED   0x0200

Definition at line 12 of file pecoff.h.

◆ IMAGE_FILE_LINE_NUMS_STRIPPED

#define IMAGE_FILE_LINE_NUMS_STRIPPED   0x0004

Definition at line 10 of file pecoff.h.

◆ IMAGE_FILE_LOCAL_SYMS_STRIPPED

#define IMAGE_FILE_LOCAL_SYMS_STRIPPED   0x0008

Definition at line 11 of file pecoff.h.

◆ IMAGE_FILE_MACHINE_AMD64

#define IMAGE_FILE_MACHINE_AMD64   0x8664

Definition at line 15 of file pecoff.h.

◆ IMAGE_FILE_MACHINE_I386

#define IMAGE_FILE_MACHINE_I386   0x14c

Definition at line 14 of file pecoff.h.

◆ IMAGE_FILE_MACHINE_IA64

#define IMAGE_FILE_MACHINE_IA64   0x0200

Definition at line 16 of file pecoff.h.

◆ IMAGE_FIRST_SECTION

#define IMAGE_FIRST_SECTION (   h)    ((PIMAGE_SECTION_HEADER) ((ULONG_PTR)h+FIELD_OFFSET(IMAGE_NT_HEADERS,OptionalHeader)+((PIMAGE_NT_HEADERS)(h))->FileHeader.SizeOfOptionalHeader))

Definition at line 267 of file pecoff.h.

◆ IMAGE_NT_OPTIONAL_HDR32_MAGIC

#define IMAGE_NT_OPTIONAL_HDR32_MAGIC   0x010b

Definition at line 3 of file pecoff.h.

◆ IMAGE_NT_OPTIONAL_HDR64_MAGIC

#define IMAGE_NT_OPTIONAL_HDR64_MAGIC   0x020b

Definition at line 4 of file pecoff.h.

◆ IMAGE_NT_SIGNATURE

#define IMAGE_NT_SIGNATURE   0x00004550

Definition at line 265 of file pecoff.h.

◆ IMAGE_NUMBEROF_DIRECTORY_ENTRIES

#define IMAGE_NUMBEROF_DIRECTORY_ENTRIES   16

Definition at line 58 of file pecoff.h.

◆ IMAGE_OS2_SIGNATURE

#define IMAGE_OS2_SIGNATURE   0x454E

Definition at line 262 of file pecoff.h.

◆ IMAGE_OS2_SIGNATURE_LE

#define IMAGE_OS2_SIGNATURE_LE   0x454C

Definition at line 263 of file pecoff.h.

◆ IMAGE_PE_MAGIC

#define IMAGE_PE_MAGIC   0x00004550

Definition at line 7 of file pecoff.h.

◆ IMAGE_REL_I386_ABSOLUTE

#define IMAGE_REL_I386_ABSOLUTE   0x0001

Definition at line 60 of file pecoff.h.

◆ IMAGE_REL_I386_DIR32

#define IMAGE_REL_I386_DIR32   0x0006

Definition at line 62 of file pecoff.h.

◆ IMAGE_REL_I386_REL16

#define IMAGE_REL_I386_REL16   0x0002

Definition at line 61 of file pecoff.h.

◆ IMAGE_SCN_ALIGN_1024BYTES

#define IMAGE_SCN_ALIGN_1024BYTES   0x00B00000

Definition at line 52 of file pecoff.h.

◆ IMAGE_SCN_ALIGN_128BYTES

#define IMAGE_SCN_ALIGN_128BYTES   0x00800000

Definition at line 49 of file pecoff.h.

◆ IMAGE_SCN_ALIGN_16BYTES

#define IMAGE_SCN_ALIGN_16BYTES   0x00500000

Definition at line 46 of file pecoff.h.

◆ IMAGE_SCN_ALIGN_1BYTES

#define IMAGE_SCN_ALIGN_1BYTES   0x00100000

Definition at line 42 of file pecoff.h.

◆ IMAGE_SCN_ALIGN_2048BYTES

#define IMAGE_SCN_ALIGN_2048BYTES   0x00C00000

Definition at line 53 of file pecoff.h.

◆ IMAGE_SCN_ALIGN_256BYTES

#define IMAGE_SCN_ALIGN_256BYTES   0x00900000

Definition at line 50 of file pecoff.h.

◆ IMAGE_SCN_ALIGN_2BYTES

#define IMAGE_SCN_ALIGN_2BYTES   0x00200000

Definition at line 43 of file pecoff.h.

◆ IMAGE_SCN_ALIGN_32BYTES

#define IMAGE_SCN_ALIGN_32BYTES   0x00600000

Definition at line 47 of file pecoff.h.

◆ IMAGE_SCN_ALIGN_4096BYTES

#define IMAGE_SCN_ALIGN_4096BYTES   0x00D00000

Definition at line 54 of file pecoff.h.

◆ IMAGE_SCN_ALIGN_4BYTES

#define IMAGE_SCN_ALIGN_4BYTES   0x00300000

Definition at line 44 of file pecoff.h.

◆ IMAGE_SCN_ALIGN_512BYTES

#define IMAGE_SCN_ALIGN_512BYTES   0x00A00000

Definition at line 51 of file pecoff.h.

◆ IMAGE_SCN_ALIGN_64BYTES

#define IMAGE_SCN_ALIGN_64BYTES   0x00700000

Definition at line 48 of file pecoff.h.

◆ IMAGE_SCN_ALIGN_8192BYTES

#define IMAGE_SCN_ALIGN_8192BYTES   0x00E00000

Definition at line 55 of file pecoff.h.

◆ IMAGE_SCN_ALIGN_8BYTES

#define IMAGE_SCN_ALIGN_8BYTES   0x00400000

Definition at line 45 of file pecoff.h.

◆ IMAGE_SCN_ALIGN_MASK

#define IMAGE_SCN_ALIGN_MASK   0x00F00000

Definition at line 56 of file pecoff.h.

◆ IMAGE_SCN_CNT_CODE

#define IMAGE_SCN_CNT_CODE   0x00000020

Definition at line 22 of file pecoff.h.

◆ IMAGE_SCN_CNT_INITIALIZED_DATA

#define IMAGE_SCN_CNT_INITIALIZED_DATA   0x00000040

Definition at line 23 of file pecoff.h.

◆ IMAGE_SCN_CNT_UNINITIALIZED_DATA

#define IMAGE_SCN_CNT_UNINITIALIZED_DATA   0x00000080

Definition at line 24 of file pecoff.h.

◆ IMAGE_SCN_GPREL

#define IMAGE_SCN_GPREL   0x00008000

Definition at line 29 of file pecoff.h.

◆ IMAGE_SCN_LNK_INFO

#define IMAGE_SCN_LNK_INFO   0x00000200

Definition at line 26 of file pecoff.h.

◆ IMAGE_SCN_LNK_NRELOC_OVFL

#define IMAGE_SCN_LNK_NRELOC_OVFL   0x01000000

Definition at line 33 of file pecoff.h.

◆ IMAGE_SCN_LNK_OTHER

#define IMAGE_SCN_LNK_OTHER   0x00000100

Definition at line 25 of file pecoff.h.

◆ IMAGE_SCN_LNK_REMOVE

#define IMAGE_SCN_LNK_REMOVE   0x00000800

Definition at line 27 of file pecoff.h.

◆ IMAGE_SCN_MEM_DISCARDABLE

#define IMAGE_SCN_MEM_DISCARDABLE   0x02000000

Definition at line 34 of file pecoff.h.

◆ IMAGE_SCN_MEM_EXECUTE

#define IMAGE_SCN_MEM_EXECUTE   0x20000000

Definition at line 38 of file pecoff.h.

◆ IMAGE_SCN_MEM_LOCKED

#define IMAGE_SCN_MEM_LOCKED   0x00040000

Definition at line 31 of file pecoff.h.

◆ IMAGE_SCN_MEM_NOT_CACHED

#define IMAGE_SCN_MEM_NOT_CACHED   0x04000000

Definition at line 35 of file pecoff.h.

◆ IMAGE_SCN_MEM_NOT_PAGED

#define IMAGE_SCN_MEM_NOT_PAGED   0x08000000

Definition at line 36 of file pecoff.h.

◆ IMAGE_SCN_MEM_PRELOAD

#define IMAGE_SCN_MEM_PRELOAD   0x00080000

Definition at line 32 of file pecoff.h.

◆ IMAGE_SCN_MEM_PURGEABLE

#define IMAGE_SCN_MEM_PURGEABLE   0x00020000

Definition at line 30 of file pecoff.h.

◆ IMAGE_SCN_MEM_READ

#define IMAGE_SCN_MEM_READ   0x40000000

Definition at line 39 of file pecoff.h.

◆ IMAGE_SCN_MEM_SHARED

#define IMAGE_SCN_MEM_SHARED   0x10000000

Definition at line 37 of file pecoff.h.

◆ IMAGE_SCN_MEM_WRITE

#define IMAGE_SCN_MEM_WRITE   0x80000000

Definition at line 40 of file pecoff.h.

◆ IMAGE_SCN_NO_DEFER_SPEC_EXC

#define IMAGE_SCN_NO_DEFER_SPEC_EXC   0x00004000

Definition at line 28 of file pecoff.h.

◆ IMAGE_SCN_TYPE_NO_PAD

#define IMAGE_SCN_TYPE_NO_PAD   0x00000008

Definition at line 21 of file pecoff.h.

◆ IMAGE_SCN_TYPE_NOLOAD

#define IMAGE_SCN_TYPE_NOLOAD   0x00000002

Definition at line 20 of file pecoff.h.

◆ IMAGE_SIZEOF_SHORT_NAME

#define IMAGE_SIZEOF_SHORT_NAME   8

Definition at line 8 of file pecoff.h.

◆ IMAGE_VXD_SIGNATURE

#define IMAGE_VXD_SIGNATURE   0x454C

Definition at line 264 of file pecoff.h.

◆ UNALIGNED

#define UNALIGNED

Definition at line 227 of file pecoff.h.

Typedef Documentation

◆ IMAGE_BASE_RELOCATION

◆ IMAGE_DATA_DIRECTORY

◆ IMAGE_DOS_HEADER

◆ IMAGE_FILE_HEADER

◆ IMAGE_NT_HEADERS

Definition at line 198 of file pecoff.h.

◆ IMAGE_NT_HEADERS32

◆ IMAGE_NT_HEADERS64

◆ IMAGE_OPTIONAL_HEADER

Definition at line 176 of file pecoff.h.

◆ IMAGE_OPTIONAL_HEADER32

◆ IMAGE_OPTIONAL_HEADER64

◆ IMAGE_RELOCATION

◆ IMAGE_SECTION_HEADER

◆ IMAGE_SYMBOL

◆ PIMAGE_BASE_RELOCATION

◆ PIMAGE_DATA_DIRECTORY

◆ PIMAGE_DOS_HEADER

◆ PIMAGE_FILE_HEADER

◆ PIMAGE_NT_HEADERS

Definition at line 199 of file pecoff.h.

◆ PIMAGE_NT_HEADERS32

◆ PIMAGE_NT_HEADERS64

◆ PIMAGE_OPTIONAL_HEADER

Definition at line 177 of file pecoff.h.

◆ PIMAGE_OPTIONAL_HEADER32

◆ PIMAGE_OPTIONAL_HEADER64

◆ PIMAGE_RELOCATION

Definition at line 239 of file pecoff.h.

◆ PIMAGE_SECTION_HEADER

◆ PIMAGE_SYMBOL

Definition at line 258 of file pecoff.h.