Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read/write support Win32 resource structures #66

Open
4 of 21 tasks
MaxXor opened this issue Jun 6, 2020 · 2 comments
Open
4 of 21 tasks

Read/write support Win32 resource structures #66

MaxXor opened this issue Jun 6, 2020 · 2 comments
Labels
enhancement pe Issues related to AsmResolver.PE up-for-grabs

Comments

@MaxXor
Copy link
Contributor

MaxXor commented Jun 6, 2020

Summary:
Currently, Win32 resources can only be read from IReadableSegment, which can be used to create an IBinaryStreamReader and read the resource in raw bytes. Updating and interpreting of resources, such as VERSIONINFO resources, is left to the user and cumbersome to parse. Native support for writing/reading such resources with parsed information would make this easier.

A look at how it's done in Vestris.ResourceLib for VERSIONINFO resources might be helpful.

Supported resource directories

  • Cursor
  • Bitmap
  • Icon
  • Menu
  • Dialog
  • String
  • Font Directory
  • Font
  • Accelerator
  • Rc Data This is user defined.
  • Message Table
  • Group Cursor
  • Group Icon
  • Version
  • Dialog Include
  • Plug-n-Play
  • Vxd
  • Animated cursors
  • Animated icons
  • Html
  • Manifest
@Washi1337 Washi1337 added enhancement pe Issues related to AsmResolver.PE v4 labels Jun 6, 2020
@Washi1337
Copy link
Owner

I'd say this is perfect for a separate package (not everyone might need this feature). I added the AsmResolver.PE.Win32Resources project to the solution.

I'd also say all resource types should be assigned their own namespace in the For example, I placed the version info resource into the AsmResolver.PE.Win32Resources.Version namespace.

Do you have any suggestions for the public API to make it easier to get to the interpreted version of the resources?

@Washi1337 Washi1337 removed the v4 label Jul 8, 2020
@Washi1337 Washi1337 changed the title Support for reading and writing Win32 resources Read/write support Win32 resource structures Aug 26, 2020
@laomms
Copy link

laomms commented Nov 13, 2021

Is it possible make it support update string table(RT_STRING).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement pe Issues related to AsmResolver.PE up-for-grabs
Projects
None yet
Development

No branches or pull requests

3 participants