ReactOS  0.4.14-dev-115-g4576127
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_NUMBEROF_DIRECTORY_ENTRIES   16
 
#define IMAGE_REL_I386_ABSOLUTE   0x0001
 
#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 244 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 250 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 248 of file pecoff.h.

◆ IMAGE_NUMBEROF_DIRECTORY_ENTRIES

#define IMAGE_NUMBEROF_DIRECTORY_ENTRIES   16

Definition at line 42 of file pecoff.h.

◆ IMAGE_OS2_SIGNATURE

#define IMAGE_OS2_SIGNATURE   0x454E

Definition at line 245 of file pecoff.h.

◆ IMAGE_OS2_SIGNATURE_LE

#define IMAGE_OS2_SIGNATURE_LE   0x454C

Definition at line 246 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 44 of file pecoff.h.

◆ IMAGE_REL_I386_DIR32

#define IMAGE_REL_I386_DIR32   0x0006

Definition at line 45 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 247 of file pecoff.h.

◆ UNALIGNED

#define UNALIGNED

Definition at line 210 of file pecoff.h.

Typedef Documentation

◆ IMAGE_BASE_RELOCATION

◆ IMAGE_DATA_DIRECTORY

◆ IMAGE_DOS_HEADER

◆ IMAGE_FILE_HEADER

◆ IMAGE_NT_HEADERS

Definition at line 181 of file pecoff.h.

◆ IMAGE_NT_HEADERS32

◆ IMAGE_NT_HEADERS64

◆ IMAGE_OPTIONAL_HEADER

Definition at line 159 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 182 of file pecoff.h.

◆ PIMAGE_NT_HEADERS32

◆ PIMAGE_NT_HEADERS64

◆ PIMAGE_OPTIONAL_HEADER

Definition at line 160 of file pecoff.h.

◆ PIMAGE_OPTIONAL_HEADER32

◆ PIMAGE_OPTIONAL_HEADER64

◆ PIMAGE_RELOCATION

Definition at line 222 of file pecoff.h.

◆ PIMAGE_SECTION_HEADER

◆ PIMAGE_SYMBOL

Definition at line 241 of file pecoff.h.