Expand description
The module for the PE optional header (OptionalHeader
) and related items.
Structs§
- Optional
Header - Unified 32/64-bit optional header (for
PE32
andPE32+
). - Standard
Fields - Unified 32/64-bit standard COFF fields (for
PE32
andPE32+
). - Standard
Fields32 - Standard 32-bit COFF fields (for
PE32
). - Standard
Fields64 - Standard 64-bit COFF fields (for
PE32+
). - Windows
Fields32 - Windows specific fields for 32-bit binary (
PE32
). They’re also known as “NT additional fields”. - Windows
Fields64 - Windows specific fields for 64-bit binary (
PE32+
). They’re also known as “NT additional fields”.
Constants§
- IMAGE_
NT_ OPTIONAL_ HDR32_ MAGIC - Magic number for 32-bit binary (
PE32
). - IMAGE_
NT_ OPTIONAL_ HDR64_ MAGIC - Magic number for 64-bit binary (
PE32+
). - IMAGE_
ROM_ OPTIONAL_ HDR_ MAGIC - Magic number for a ROM image.
- MAGIC_
32 - Standard fields magic number for 32-bit binary (
PE32
). - MAGIC_
64 - Standard fields magic number for 64-bit binary (
PE32+
). - OFFSET_
WINDOWS_ FIELDS_ 32_ CHECKSUM - Offset of the
check_sum
field inWindowsFields32
. - OFFSET_
WINDOWS_ FIELDS_ 64_ CHECKSUM - Offset of the
check_sum
field inWindowsFields64
. - SIZEOF_
STANDARD_ FIELDS_ 32 - Convenience constant for
core::mem::size_of::<StandardFields32>()
. - SIZEOF_
STANDARD_ FIELDS_ 64 - Convenience constant for
core::mem::size_of::<StandardFields64>()
. - SIZEOF_
WINDOWS_ FIELDS_ 32 - Convenience constant for
core::mem::size_of::<WindowsFields32>()
. - SIZEOF_
WINDOWS_ FIELDS_ 64 - Convenience constant for
core::mem::size_of::<WindowsFields64>()
.
Type Aliases§
- Windows
Fields - Unified 32/64-bit Windows fields (for
PE32
andPE32+
). Since 64-bit fields are a superset of 32-bit fields,WindowsFields
is an alias forWindowsFields64
.