Library for reading of native resources of executables & DLL files.
ResourceFileInfo
A ResourceFileInfo
represents an executable or DLL file that contains resources.
ResourceFileInfo resourceFile = new(@"C:\Windows\explorer.exe");
// Retrieve resource as byte[]:
byte[] rcData1 = resourceFile.GetResource(ResourceType.RCData, 101);
// Retrieve icon groups:
int[] iconNames = resourceFile.GetGroupIconResourceNames();
Icon[] icons = iconNames.Select(name => resourceFile.GetGroupIconResource(name)).ToArray();
Modify the resources of the file:
// Change executable icon:
resourceFile.ChangeIcon(new Icon(@"C:\path\to\icon.ico"));
// Strip all resources:
resourceFile.DeleteResources();
- Initial release