Module headers

Module headers 

Source
Expand description

This module contains all the headers necessary to parse various aspects of a PE file.

Objects taken directly from C are typically prefixed with “Image” and will closely resemble the names of their C counterparts, but named to conform to Rust standards. For example, IMAGE_DIRECTORY_ENTRY is known as ImageDirectoryEntry in this library.

Structs§

DLLCharacteristics
A series of bitflags representing DLL characteristics.
FileCharacteristics
A bitflag structure representing file characteristics in the file header.
GrpIconDir
Represent a directory in a resource-encoded icon group.
GrpIconDirEntry
Represent an entry in a resource-encoded icon group.
GrpIconDirMut
Represent a mutable directory in a resource-encoded icon group.
ImageBaseRelocation
ImageDOSHeader
ImageDataDirectory
ImageDebugDirectory
ImageExportDirectory
ImageFileHeader
ImageImportByName
Represents an IMAGE_IMPORT_BY_NAME structure.
ImageImportByNameMut
Represents a mutable IMAGE_IMPORT_BY_NAME structure.
ImageImportDescriptor
ImageNTHeaders32
ImageNTHeaders64
ImageOptionalHeader32
ImageOptionalHeader64
ImageResourceDataEntry
ImageResourceDirString
Represents an IMAGE_RESOURCE_DIR_STRING structure.
ImageResourceDirStringMut
Represents a mutable IMAGE_RESOURCE_DIR_STRING structure.
ImageResourceDirStringU
Represents an IMAGE_RESOURCE_DIR_STRING_U structure.
ImageResourceDirStringUMut
Represents a mutable IMAGE_RESOURCE_DIR_STRING_U structure.
ImageResourceDirectory
ImageResourceDirectoryEntry
ImageSectionHeader
ImageTLSDirectory32
ImageTLSDirectory64
SectionCharacteristics
A series of bitflags representing section characteristics.
TLSCharacteristics
A series of bitflags representing TLS directory characteristics.

Enums§

ImageDebugType
ImageDirectoryEntry
ImageFileMachine
ImageRelBased
An enum containing relocation types.
ImageSubsystem

Constants§

DOS_SIGNATURE
HDR32_MAGIC
HDR64_MAGIC
NT_SIGNATURE
OS2_SIGNATURE
OS2_SIGNATURE_LE
ROM_MAGIC
VXD_SIGNATURE