mirror of
https://github.com/claunia/libexeinfo.git
synced 2025-12-16 19:14:24 +00:00
73 lines
2.1 KiB
C#
73 lines
2.1 KiB
C#
using System;
|
|
using System.ComponentModel;
|
|
namespace exeinfo.NE
|
|
{
|
|
public static class Consts
|
|
{
|
|
public const ushort Signature = 0x454E;
|
|
public static readonly string FixedFileInfo = "VS_VERSION_INFO";
|
|
public static readonly string StringFileInfo = "StringFileInfo";
|
|
|
|
public static string IdToName(ushort id)
|
|
{
|
|
switch (id & 0x7FFF)
|
|
{
|
|
case (int)ResourceTypes.RT_ACCELERATOR:
|
|
return "RT_ACCELERATOR";
|
|
case (int)ResourceTypes.RT_ANICURSOR:
|
|
return "RT_ANICURSOR";
|
|
case (int)ResourceTypes.RT_ANIICON:
|
|
return "RT_ANIICON";
|
|
case (int)ResourceTypes.RT_BITMAP:
|
|
return "RT_BITMAP";
|
|
case (int)ResourceTypes.RT_CURSOR:
|
|
return "RT_CURSOR";
|
|
case (int)ResourceTypes.RT_DIALOG:
|
|
return "RT_DIALOG";
|
|
case (int)ResourceTypes.RT_DIALOGEX:
|
|
return "RT_DIALOGEX";
|
|
case (int)ResourceTypes.RT_DLGINCLUDE:
|
|
return "RT_DLGINCLUDE";
|
|
case (int)ResourceTypes.RT_DLGINIT:
|
|
return "RT_DLGINIT";
|
|
case (int)ResourceTypes.RT_FONT:
|
|
return "RT_FONT";
|
|
case (int)ResourceTypes.RT_FONTDIR:
|
|
return "RT_FONTDIR";
|
|
case (int)ResourceTypes.RT_GROUP_CURSOR:
|
|
return "RT_GROUP_CURSOR";
|
|
case (int)ResourceTypes.RT_GROUP_ICON:
|
|
return "RT_GROUP_ICON";
|
|
case (int)ResourceTypes.RT_HTML:
|
|
return "RT_HTML";
|
|
case (int)ResourceTypes.RT_ICON:
|
|
return "RT_ICON";
|
|
case (int)ResourceTypes.RT_MANIFEST:
|
|
return "RT_MANIFEST";
|
|
case (int)ResourceTypes.RT_MENU:
|
|
return "RT_MENU";
|
|
case (int)ResourceTypes.RT_MENUEX:
|
|
return "RT_MENUEX";
|
|
case (int)ResourceTypes.RT_MESSAGETABLE:
|
|
return "RT_MESSAGETABLE";
|
|
case (int)ResourceTypes.RT_NEWBITMAP:
|
|
return "RT_NEWBITMAP";
|
|
case (int)ResourceTypes.RT_PLUGPLAY:
|
|
return "RT_PLUGPLAY";
|
|
case (int)ResourceTypes.RT_RCDATA:
|
|
return "RT_RCDATA";
|
|
case (int)ResourceTypes.RT_STRING:
|
|
return "RT_STRING";
|
|
case (int)ResourceTypes.RT_TOOLBAR:
|
|
return "RT_TOOLBAR";
|
|
case (int)ResourceTypes.RT_VERSION:
|
|
return "RT_VERSION";
|
|
case (int)ResourceTypes.RT_VXD:
|
|
return "RT_VXD";
|
|
default:
|
|
return string.Format("{0}", id & 0x7FFF);
|
|
}
|
|
}
|
|
}
|
|
}
|