Add decoding of Windows icons, panel for RT_ICON resources in NE, and detect Windows icon inside OS/2 RT_POINTER resources in NE.

This commit is contained in:
2018-03-06 15:48:43 +00:00
parent 54cc979d0e
commit 095221a349
8 changed files with 362 additions and 2 deletions

View File

@@ -29,6 +29,7 @@ using System.Collections.Generic;
using System.Linq;
using exeinfogui.Os2;
using exeinfogui.Win16;
using exeinfogui.Windows;
using Eto.Forms;
using Eto.Serialization.Xaml;
@@ -41,6 +42,7 @@ namespace exeinfogui.NE
PanelNeStrings panelNeStrings;
PanelOs2Bitmap panelOs2Bitmap;
PanelWin16Version panelWin16Version;
PanelWindowsIcon panelWindowsIcon;
Panel pnlResource;
TreeGridItemCollection treeData;
TreeGridView treeResources;
@@ -61,6 +63,7 @@ namespace exeinfogui.NE
panelNeAccelerators = new PanelNeAccelerators();
panelHexDump = new PanelHexDump();
panelOs2Bitmap = new PanelOs2Bitmap();
panelWindowsIcon = new PanelWindowsIcon();
}
public void Update(IEnumerable<libexeinfo.NE.ResourceType> resourceTypes, libexeinfo.NE.TargetOS os)
@@ -131,6 +134,10 @@ namespace exeinfogui.NE
}
catch { goto default; }
break;
case "RT_ICON":
pnlResource.Content = panelWindowsIcon;
panelWindowsIcon.Update(data);
break;
default:
pnlResource.Content = panelHexDump;