Class IMAGE_FILE_HEADER
The File header contains information about the structure and properties of the PE file.
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_FILE_HEADER : AbstractStructure
Constructors
| Improve this Doc View SourceIMAGE_FILE_HEADER(Byte[], UInt32)
Create a new IMAGE_FILE_HEADER object.
Declaration
public IMAGE_FILE_HEADER(byte[] buff, uint offset)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | buff | A PE file as byte array. |
System.UInt32 | offset | Raw offset to the file header. |
Properties
| Improve this Doc View SourceCharacteristics
Set of flags which describe the PE file in detail. Can be resolved with Utility.ResolveCharacteristics(characteristics).
Declaration
public ushort Characteristics { get; set; }
Property Value
Type | Description |
---|---|
System.UInt16 |
Machine
The machine (CPU type) the PE file is intended for. Can be resolved with Utility.ResolveTargetMachine(machine).
Declaration
public ushort Machine { get; set; }
Property Value
Type | Description |
---|---|
System.UInt16 |
NumberOfSections
The number of sections in the PE file.
Declaration
public ushort NumberOfSections { get; set; }
Property Value
Type | Description |
---|---|
System.UInt16 |
NumberOfSymbols
The number of COFF symbols.
Declaration
public uint NumberOfSymbols { get; set; }
Property Value
Type | Description |
---|---|
System.UInt32 |
PointerToSymbolTable
Pointer to COFF symbols table. They are rare in PE files, but often in obj files.
Declaration
public uint PointerToSymbolTable { get; set; }
Property Value
Type | Description |
---|---|
System.UInt32 |
SizeOfOptionalHeader
The size of the optional header which follow the file header.
Declaration
public ushort SizeOfOptionalHeader { get; set; }
Property Value
Type | Description |
---|---|
System.UInt16 |
TimeDateStamp
Time and date stamp.
Declaration
public uint TimeDateStamp { get; set; }
Property Value
Type | Description |
---|---|
System.UInt32 |