LIEF: Library to Instrument Executable Formats Version 0.16.0
Loading...
Searching...
No Matches
OptionalHeader.h File Reference
#include <inttypes.h>
#include "LIEF/PE/enums.h"
#include "LIEF/visibility.h"
Include dependency graph for OptionalHeader.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Pe_OptionalHeader_t
 

Typedefs

typedef struct Pe_OptionalHeader_t Pe_OptionalHeader_t
 

Enumerations

enum  LIEF_PE_DLL_CHARACTERISTICS {
  LIEF_PE_DLL_CHARACTERISTICS_HIGH_ENTROPY_VA = 0x0020 , LIEF_PE_DLL_CHARACTERISTICS_DYNAMIC_BASE = 0x0040 , LIEF_PE_DLL_CHARACTERISTICS_FORCE_INTEGRITY = 0x0080 , LIEF_PE_DLL_CHARACTERISTICS_NX_COMPAT = 0x0100 ,
  LIEF_PE_DLL_CHARACTERISTICS_NO_ISOLATION = 0x0200 , LIEF_PE_DLL_CHARACTERISTICS_NO_SEH = 0x0400 , LIEF_PE_DLL_CHARACTERISTICS_NO_BIND = 0x0800 , LIEF_PE_DLL_CHARACTERISTICS_APPCONTAINER = 0x1000 ,
  LIEF_PE_DLL_CHARACTERISTICS_WDM_DRIVER = 0x2000 , LIEF_PE_DLL_CHARACTERISTICS_GUARD_CF = 0x4000 , LIEF_PE_DLL_CHARACTERISTICS_TERMINAL_SERVER_AWARE = 0x8000
}
 
enum  LIEF_PE_SUBSYSTEM {
  LIEF_PE_SUBSYSTEM_UNKNOWN = 0 , LIEF_PE_SUBSYSTEM_NATIVE = 1 , LIEF_PE_SUBSYSTEM_WINDOWS_GUI = 2 , LIEF_PE_SUBSYSTEM_WINDOWS_CUI = 3 ,
  LIEF_PE_SUBSYSTEM_OS2_CUI = 5 , LIEF_PE_SUBSYSTEM_POSIX_CUI = 7 , LIEF_PE_SUBSYSTEM_NATIVE_WINDOWS = 8 , LIEF_PE_SUBSYSTEM_WINDOWS_CE_GUI = 9 ,
  LIEF_PE_SUBSYSTEM_EFI_APPLICATION = 10 , LIEF_PE_SUBSYSTEM_EFI_BOOT_SERVICE_DRIVER = 11 , LIEF_PE_SUBSYSTEM_EFI_RUNTIME_DRIVER = 12 , LIEF_PE_SUBSYSTEM_EFI_ROM = 13 ,
  LIEF_PE_SUBSYSTEM_XBOX = 14 , LIEF_PE_SUBSYSTEM_WINDOWS_BOOT_APPLICATION = 16
}
 

Functions

const char * lief_pe_subsytem_str (enum LIEF_PE_SUBSYSTEM e)
 

Typedef Documentation

◆ Pe_OptionalHeader_t

typedef struct Pe_OptionalHeader_t Pe_OptionalHeader_t

Enumeration Type Documentation

◆ LIEF_PE_DLL_CHARACTERISTICS

Enumerator
LIEF_PE_DLL_CHARACTERISTICS_HIGH_ENTROPY_VA 

ASLR with 64 bit address space.

LIEF_PE_DLL_CHARACTERISTICS_DYNAMIC_BASE 

DLL can be relocated at load time.

LIEF_PE_DLL_CHARACTERISTICS_FORCE_INTEGRITY 

Code integrity checks are enforced.

LIEF_PE_DLL_CHARACTERISTICS_NX_COMPAT 

Image is NX compatible.

LIEF_PE_DLL_CHARACTERISTICS_NO_ISOLATION 

Isolation aware, but do not isolate the image.

LIEF_PE_DLL_CHARACTERISTICS_NO_SEH 

Does not use structured exception handling (SEH). No SEH handler may be called in this image.

LIEF_PE_DLL_CHARACTERISTICS_NO_BIND 

Do not bind the image.

LIEF_PE_DLL_CHARACTERISTICS_APPCONTAINER 

Image should execute in an AppContainer.

LIEF_PE_DLL_CHARACTERISTICS_WDM_DRIVER 

A WDM driver.

LIEF_PE_DLL_CHARACTERISTICS_GUARD_CF 

Image supports Control Flow Guard.

LIEF_PE_DLL_CHARACTERISTICS_TERMINAL_SERVER_AWARE 

Terminal Server aware.

◆ LIEF_PE_SUBSYSTEM

Enumerator
LIEF_PE_SUBSYSTEM_UNKNOWN 

An unknown subsystem.

LIEF_PE_SUBSYSTEM_NATIVE 

Device drivers and native Windows processes

LIEF_PE_SUBSYSTEM_WINDOWS_GUI 

The Windows GUI subsystem.

LIEF_PE_SUBSYSTEM_WINDOWS_CUI 

The Windows character subsystem.

LIEF_PE_SUBSYSTEM_OS2_CUI 

The OS/2 character subsytem.

LIEF_PE_SUBSYSTEM_POSIX_CUI 

The POSIX character subsystem.

LIEF_PE_SUBSYSTEM_NATIVE_WINDOWS 

Native Windows 9x driver.

LIEF_PE_SUBSYSTEM_WINDOWS_CE_GUI 

Windows CE.

LIEF_PE_SUBSYSTEM_EFI_APPLICATION 

An EFI application.

LIEF_PE_SUBSYSTEM_EFI_BOOT_SERVICE_DRIVER 

An EFI driver with boot services.

LIEF_PE_SUBSYSTEM_EFI_RUNTIME_DRIVER 

An EFI driver with run-time services.

LIEF_PE_SUBSYSTEM_EFI_ROM 

An EFI ROM image.

LIEF_PE_SUBSYSTEM_XBOX 

XBOX.

LIEF_PE_SUBSYSTEM_WINDOWS_BOOT_APPLICATION 

A BCD application.

Function Documentation

◆ lief_pe_subsytem_str()

const char * lief_pe_subsytem_str ( enum LIEF_PE_SUBSYSTEM e)

References LIEF_API.