Class ImageDosHeader
The ImageDosHeader with which every PE file starts.
Namespace: PeNet.Header.Pe
Assembly: PeNet.dll
Syntax
public class ImageDosHeader : AbstractStructure
  Constructors
| Improve this Doc View SourceImageDosHeader(IRawFile, Int64)
Create a new ImageDosHeader object.
Declaration
public ImageDosHeader(IRawFile peFile, long offset)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IRawFile | peFile | A PE file.  | 
      
| System.Int64 | offset | Offset in the PE file to the DOS header.  | 
      
Properties
| Improve this Doc View SourceE_cblp
Bytes on the last page of the file.
Declaration
public ushort E_cblp { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.UInt16 | 
E_cp
Pages in the file.
Declaration
public ushort E_cp { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.UInt16 | 
E_cparhdr
Size of the header in paragraphs.
Declaration
public ushort E_cparhdr { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.UInt16 | 
E_crlc
Relocations.
Declaration
public ushort E_crlc { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.UInt16 | 
E_cs
Initial (relative) CS value.
Declaration
public ushort E_cs { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.UInt16 | 
E_csum
Checksum
Declaration
public ushort E_csum { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.UInt16 | 
E_ip
Initial IP value.
Declaration
public ushort E_ip { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.UInt16 | 
E_lfanew
Raw address of the NT header.
Declaration
public uint E_lfanew { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.UInt32 | 
E_lfarlc
Raw address of the relocation table.
Declaration
public ushort E_lfarlc { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.UInt16 | 
E_magic
Magic "MZ" header.
Declaration
public ushort E_magic { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.UInt16 | 
E_maxalloc
Maximum extra paragraphs needed.
Declaration
public ushort E_maxalloc { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.UInt16 | 
E_minalloc
Minimum extra paragraphs needed.
Declaration
public ushort E_minalloc { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.UInt16 | 
E_oemid
OEM identifier.
Declaration
public ushort E_oemid { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.UInt16 | 
E_oeminfo
OEM information.
Declaration
public ushort E_oeminfo { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.UInt16 | 
E_ovno
Overlay number.
Declaration
public ushort E_ovno { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.UInt16 | 
E_res
Reserved.
Declaration
public ushort[] E_res { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.UInt16[] | 
E_res2
Reserved.
Declaration
public ushort[] E_res2 { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.UInt16[] | 
E_sp
Initial SP value.
Declaration
public ushort E_sp { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.UInt16 | 
E_ss
Initial (relative) SS value.
Declaration
public ushort E_ss { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.UInt16 |