GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — bytecode-api/BytecodeApi.PEResources at master · bytecode77/bytecode-api

Expand file tree

/

BytecodeApi.PEResources

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

BytecodeApi.PEResources

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
.nuget
.nuget
 
 
Properties
Properties
 
 
BytecodeApi.PEResources.csproj
BytecodeApi.PEResources.csproj
 
 
README.md
README.md
 
 
ResourceFileInfo.cs
ResourceFileInfo.cs
 
 
ResourceType.cs
ResourceType.cs
 
 

README.md

Outline

BytecodeApi.PEResources

Library for reading of native resources of executables & DLL files.

Examples

BytecodeApi.PEResources

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();

Changelog

5.0.0 (15.02.2026)

  • change: Targeting .NET 10.0

4.0.0 (15.09.2025)

  • change: Targeting .NET 9.0
  • change: Bugfix: ResourceFileInfo methods did not accept name "0".

3.0.0 (08.09.2023)

  • Initial release
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.