Added support for PE and COFF.

This commit is contained in:
2017-10-17 17:33:46 +01:00
parent e305f78f5f
commit 952b61d1f8
16 changed files with 2228 additions and 3 deletions

View File

@@ -53,8 +53,10 @@ namespace exeinfo
NE neExe = new NE(exeFs);
AtariST stExe = new AtariST(exeFs);
LX lxExe = new LX(exeFs);
COFF coffExe = new COFF(exeFs);
PE peExe = new PE(exeFs);
if (mzExe.IsMZ)
if (mzExe.IsMZ)
{
recognized = true;
Console.Write(mzExe.GetInfo());
@@ -124,6 +126,18 @@ namespace exeinfo
Console.Write(lxExe.GetInfo());
}
if (coffExe.IsCOFF)
{
recognized = true;
Console.Write(coffExe.GetInfo());
}
if (peExe.IsPE)
{
recognized = true;
Console.Write(peExe.GetInfo());
}
if (!recognized)
Console.WriteLine("Executable format not recognized");
}