mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-10-05 13:08:40 +00:00
Add and use PE constants
This commit is contained in:
11
BurnOutSharp.Models/PortableExecutable/Constants.cs
Normal file
11
BurnOutSharp.Models/PortableExecutable/Constants.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace BurnOutSharp.Models.PortableExecutable
|
||||
{
|
||||
public static class Constants
|
||||
{
|
||||
public static readonly byte[] SignatureBytes = new byte[] { 0x50, 0x45, 0x00, 0x00 };
|
||||
|
||||
public const string SignatureString = "PE\0\0";
|
||||
|
||||
public const uint SignatureUInt32 = 0x00004550;
|
||||
}
|
||||
}
|
||||
@@ -19,7 +19,7 @@ namespace BurnOutSharp.Models.PortableExecutable
|
||||
/// signature that identifies the file as a PE format image file. This signature is "PE\0\0"
|
||||
/// (the letters "P" and "E" followed by two null bytes).
|
||||
/// </summary>
|
||||
public byte[] Signature { get; set; }
|
||||
public string Signature { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// COFF file header
|
||||
|
||||
Reference in New Issue
Block a user