mirror of
https://github.com/claunia/libexeinfo.git
synced 2025-12-16 19:14:24 +00:00
Added support for PE and COFF.
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user