Add PE skeleton, change MZ stubs

This commit is contained in:
Matt Nadareski
2022-11-04 21:05:03 -07:00
parent 7cb150606c
commit 7f2de233fc
4 changed files with 21 additions and 8 deletions

View File

@@ -20,8 +20,4 @@
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<ItemGroup>
<Folder Include="PortableExecutable\" />
</ItemGroup>
</Project>

View File

@@ -11,9 +11,9 @@ namespace BurnOutSharp.Models.LinearExecutable
public class Executable
{
/// <summary>
/// MS-DOS executable header
/// MS-DOS executable stub
/// </summary>
public MSDOS.ExecutableHeader Stub { get; set; }
public MSDOS.Executable Stub { get; set; }
/// <summary>
/// Information block

View File

@@ -12,9 +12,9 @@ namespace BurnOutSharp.Models.NewExecutable
public class Executable
{
/// <summary>
/// MS-DOS executable header
/// MS-DOS executable stub
/// </summary>
public MSDOS.ExecutableHeader Stub { get; set; }
public MSDOS.Executable Stub { get; set; }
/// <summary>
/// New Executable header

View File

@@ -0,0 +1,17 @@
namespace BurnOutSharp.Models.PortableExecutable
{
/// <summary>
/// The following list describes the Microsoft PE executable format, with the
/// base of the image header at the top. The section from the MS-DOS 2.0
/// Compatible EXE Header through to the unused section just before the PE header
/// is the MS-DOS 2.0 Section, and is used for MS-DOS compatibility only.
/// </summary>
/// <see href="https://learn.microsoft.com/en-us/windows/win32/debug/pe-format"/>
public class Executable
{
/// <summary>
/// MS-DOS executable stub
/// </summary>
public MSDOS.Executable Stub { get; set; }
}
}