Class IMAGE_DOS_HEADER
The IMAGE_DOS_HEADER with which every PE file starts.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: PeNet.Structures
Assembly: PeNet.dll
Syntax
public class IMAGE_DOS_HEADER : AbstractStructure
Constructors
| Improve this Doc View SourceIMAGE_DOS_HEADER(Byte[], UInt32)
Create a new IMAGE_DOS_HEADER object.
Declaration
public IMAGE_DOS_HEADER(byte[] buff, uint offset)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | buff | Byte buffer containing a PE file. |
System.UInt32 | offset | Offset in the buffer 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 |