namespace QuickLook.Plugin.PEViewer.PEImageParser; /// /// Represents the DOS header of a PE image file. /// public sealed class ImageDosHeader { /// /// Specifies the amount of bytes on last page of the file. /// public ushort LastPageSize { get; internal set; } /// /// Specifies the amount of pages in the file. /// public ushort PageCount { get; internal set; } /// /// Specifies the amount of relocations in the file. /// public ushort RelocationCount { get; internal set; } /// /// Specifies the size of header in paragraphs. /// public ushort HeaderSize { get; internal set; } /// /// Specifies the minimum extra paragraphs needed. /// public ushort MinAlloc { get; internal set; } /// /// Specifies the maximum extra paragraphs needed. /// public ushort MaxAlloc { get; internal set; } /// /// Specifies the initial (relative) SS value. /// public ushort InitialSS { get; internal set; } /// /// Specifies the initial SP value. /// public ushort InitialSP { get; internal set; } /// /// Specifies the file checksum. /// public ushort Checksum { get; internal set; } /// /// Specifies the initial IP value. /// public ushort InitialIP { get; internal set; } /// /// Specifies the initial (relative) CS value. /// public ushort InitialCS { get; internal set; } /// /// Specifies the file address of the relocation table. /// public ushort RelocationOffset { get; internal set; } /// /// Specifies the overlay number. /// public ushort OverlayNumber { get; internal set; } /// /// Reserved. /// public ushort Reserved1 { get; internal set; } /// /// Reserved. /// public ushort Reserved2 { get; internal set; } /// /// Reserved. /// public ushort Reserved3 { get; internal set; } /// /// Reserved. /// public ushort Reserved4 { get; internal set; } /// /// Specifies the OEM Identifier. /// public ushort OemIdentifier { get; internal set; } /// /// Specifies the OEM identifier. /// public ushort OemInformation { get; internal set; } /// /// Reserved. /// public ushort Reserved5 { get; internal set; } /// /// Reserved. /// public ushort Reserved6 { get; internal set; } /// /// Reserved. /// public ushort Reserved7 { get; internal set; } /// /// Reserved. /// public ushort Reserved8 { get; internal set; } /// /// Reserved. /// public ushort Reserved9 { get; internal set; } /// /// Reserved. /// public ushort Reserved10 { get; internal set; } /// /// Reserved. /// public ushort Reserved11 { get; internal set; } /// /// Reserved. /// public ushort Reserved12 { get; internal set; } /// /// Reserved. /// public ushort Reserved13 { get; internal set; } /// /// Reserved. /// public ushort Reserved14 { get; internal set; } /// /// Specifies the file address of new EXE header. /// public uint PEHeaderOffset { get; internal set; } internal ImageDosHeader() { } }