mirror of
https://github.com/sampletext32/ParkanPlayground.git
synced 2025-05-19 11:51:17 +03:00
31 lines
1.3 KiB
C#
31 lines
1.3 KiB
C#
![]() |
using System;
|
||
|
|
||
|
namespace X86Disassembler.PE
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// Represents the DOS header of a PE file
|
||
|
/// </summary>
|
||
|
public class DOSHeader
|
||
|
{
|
||
|
public ushort e_magic; // Magic number (MZ)
|
||
|
public ushort e_cblp; // Bytes on last page of file
|
||
|
public ushort e_cp; // Pages in file
|
||
|
public ushort e_crlc; // Relocations
|
||
|
public ushort e_cparhdr; // Size of header in paragraphs
|
||
|
public ushort e_minalloc; // Minimum extra paragraphs needed
|
||
|
public ushort e_maxalloc; // Maximum extra paragraphs needed
|
||
|
public ushort e_ss; // Initial (relative) SS value
|
||
|
public ushort e_sp; // Initial SP value
|
||
|
public ushort e_csum; // Checksum
|
||
|
public ushort e_ip; // Initial IP value
|
||
|
public ushort e_cs; // Initial (relative) CS value
|
||
|
public ushort e_lfarlc; // File address of relocation table
|
||
|
public ushort e_ovno; // Overlay number
|
||
|
public ushort[] e_res; // Reserved words
|
||
|
public ushort e_oemid; // OEM identifier (for e_oeminfo)
|
||
|
public ushort e_oeminfo; // OEM information; e_oemid specific
|
||
|
public ushort[] e_res2; // Reserved words
|
||
|
public uint e_lfanew; // File address of new exe header
|
||
|
}
|
||
|
}
|