ReactOS 0.4.16-dev-321-g63bb46a
|
Go to the source code of this file.
Macros | |
#define | EXEFMT_LOAD_ASSUME_SEGMENTS_SORTED (1 << 0) |
#define | EXEFMT_LOAD_ASSUME_SEGMENTS_NO_OVERLAP (1 << 1) |
#define | EXEFMT_LOAD_ASSUME_SEGMENTS_PAGE_ALIGNED (1 << 2) |
#define | EXEFMT_LOAD_ASSUME_SEGMENTS_OK |
#define | EXEFMT_LOAD_HEADER_SIZE (0x2000) |
#define | EXEFMT_LOAD_BASE_NONE ((ULONG_PTR)-1) |
#define | EXEFMT_LOAD_BASE_ANY ((ULONG_PTR)-2) |
#define | FACILITY_ROS_EXEFMT (0x10) |
#define | STATUS_ROS_EXEFMT_UNKNOWN_FORMAT ((NTSTATUS)0xA0100001) |
#define | FACILITY_ROS_EXEFMT_FORMAT (0x11) |
#define | STATUS_ROS_EXEFMT_LOADED_FORMAT ((NTSTATUS)0x60110000) |
#define | EXEFMT_LOADED_EXTENDED (0x0000FFFF) |
#define | EXEFMT_LOADED_PE32 (0x00000000) |
#define | EXEFMT_LOADED_PE64 (0x00000001) |
#define | EXEFMT_LOADED_WINE32 (0x00000002) |
#define | EXEFMT_LOADED_WINE64 (0x00000003) |
#define | EXEFMT_LOADED_ELF32 (0x00000004) |
#define | EXEFMT_LOADED_ELF64 (0x00000005) |
#define | PEFMT_FIELDS_EQUAL(TYPE1_, TYPE2_, FIELD_) |
Typedefs | |
typedef NTSTATUS(NTAPI * | PEXEFMT_CB_READ_FILE) (IN PVOID File, IN PLARGE_INTEGER Offset, IN ULONG Length, OUT PVOID *Data, OUT PVOID *AllocBase, OUT PULONG ReadSize) |
typedef PMM_SECTION_SEGMENT(NTAPI * | PEXEFMT_CB_ALLOCATE_SEGMENTS) (IN ULONG NrSegments) |
typedef NTSTATUS(NTAPI * | PEXEFMT_LOADER) (IN CONST VOID *FileHeader, IN SIZE_T FileHeaderSize, IN PVOID File, OUT PMM_IMAGE_SECTION_OBJECT ImageSectionObject, OUT PULONG Flags, IN PEXEFMT_CB_READ_FILE ReadFileCb, IN PEXEFMT_CB_ALLOCATE_SEGMENTS AllocateSegmentsCb) |
Functions | |
static __inline BOOLEAN | Intsafe_CanAddULongPtr (IN ULONG_PTR Addend1, IN ULONG_PTR Addend2) |
static __inline BOOLEAN | Intsafe_CanAddLong64 (IN LONG64 Addend1, IN LONG64 Addend2) |
static __inline BOOLEAN | Intsafe_CanAddULong32 (IN ULONG Addend1, IN ULONG Addend2) |
static __inline BOOLEAN | Intsafe_AddULong32 (OUT PULONG Result, IN ULONG Addend1, IN ULONG Addend2) |
static __inline BOOLEAN | Intsafe_CanMulULong32 (IN ULONG Factor1, IN ULONG Factor2) |
static __inline BOOLEAN | Intsafe_CanOffsetPointer (IN CONST VOID *Pointer, IN SIZE_T Offset) |
static __inline BOOLEAN | IsPowerOf2 (IN ULONG Number) |
static __inline ULONG | ModPow2 (IN ULONG Address, IN ULONG Alignment) |
static __inline BOOLEAN | IsAligned (IN ULONG Address, IN ULONG Alignment) |
static __inline BOOLEAN | AlignUp (OUT PULONG AlignedAddress, IN ULONG Address, IN ULONG Alignment) |
#define EXEFMT_LOAD_ASSUME_SEGMENTS_NO_OVERLAP (1 << 1) |
Definition at line 9 of file exeformat.h.
#define EXEFMT_LOAD_ASSUME_SEGMENTS_OK |
Definition at line 12 of file exeformat.h.
#define EXEFMT_LOAD_ASSUME_SEGMENTS_PAGE_ALIGNED (1 << 2) |
Definition at line 10 of file exeformat.h.
#define EXEFMT_LOAD_ASSUME_SEGMENTS_SORTED (1 << 0) |
Definition at line 8 of file exeformat.h.
Definition at line 33 of file exeformat.h.
Definition at line 30 of file exeformat.h.
#define EXEFMT_LOAD_HEADER_SIZE (0x2000) |
Definition at line 23 of file exeformat.h.
#define EXEFMT_LOADED_ELF32 (0x00000004) |
Definition at line 95 of file exeformat.h.
#define EXEFMT_LOADED_ELF64 (0x00000005) |
Definition at line 96 of file exeformat.h.
#define EXEFMT_LOADED_EXTENDED (0x0000FFFF) |
Definition at line 84 of file exeformat.h.
#define EXEFMT_LOADED_PE32 (0x00000000) |
Definition at line 87 of file exeformat.h.
#define EXEFMT_LOADED_PE64 (0x00000001) |
Definition at line 88 of file exeformat.h.
#define EXEFMT_LOADED_WINE32 (0x00000002) |
Definition at line 91 of file exeformat.h.
#define EXEFMT_LOADED_WINE64 (0x00000003) |
Definition at line 92 of file exeformat.h.
#define FACILITY_ROS_EXEFMT (0x10) |
Definition at line 65 of file exeformat.h.
#define FACILITY_ROS_EXEFMT_FORMAT (0x11) |
Definition at line 80 of file exeformat.h.
#define PEFMT_FIELDS_EQUAL | ( | TYPE1_, | |
TYPE2_, | |||
FIELD_ | |||
) |
Definition at line 165 of file exeformat.h.
Definition at line 81 of file exeformat.h.
Definition at line 72 of file exeformat.h.
typedef PMM_SECTION_SEGMENT(NTAPI * PEXEFMT_CB_ALLOCATE_SEGMENTS) (IN ULONG NrSegments) |
Definition at line 45 of file exeformat.h.
typedef NTSTATUS(NTAPI * PEXEFMT_CB_READ_FILE) (IN PVOID File, IN PLARGE_INTEGER Offset, IN ULONG Length, OUT PVOID *Data, OUT PVOID *AllocBase, OUT PULONG ReadSize) |
Definition at line 35 of file exeformat.h.
typedef NTSTATUS(NTAPI * PEXEFMT_LOADER) (IN CONST VOID *FileHeader, IN SIZE_T FileHeaderSize, IN PVOID File, OUT PMM_IMAGE_SECTION_OBJECT ImageSectionObject, OUT PULONG Flags, IN PEXEFMT_CB_READ_FILE ReadFileCb, IN PEXEFMT_CB_ALLOCATE_SEGMENTS AllocateSegmentsCb) |
Definition at line 50 of file exeformat.h.
|
static |
Definition at line 152 of file exeformat.h.
|
static |
Definition at line 114 of file exeformat.h.
Referenced by AlignUp(), and PeFmtCreateSection().
Definition at line 104 of file exeformat.h.
Referenced by PeFmtCreateSection().
Definition at line 109 of file exeformat.h.
Referenced by Intsafe_AddULong32(), and PeFmtCreateSection().
|
static |
Definition at line 123 of file exeformat.h.
Referenced by PeFmtCreateSection().
|
static |
Definition at line 128 of file exeformat.h.
Referenced by PeFmtCreateSection().
Definition at line 147 of file exeformat.h.
Referenced by PeFmtCreateSection().
Definition at line 134 of file exeformat.h.
Referenced by ModPow2(), and PeFmtCreateSection().