Is there any way to extract icons or text from exe/dll?

In the Windows registry, there are some resources in exe/dll. Is there a simpler way to extract them by id?


IconResource=%SystemRoot%\system32\imageres.dll,-183

[HKEY_CLASSES_ROOT\Directory\Background\shell\AnyCode]
@="@C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\MSEnv\\2052\\VSLauncherUI.dll,-1002"
"Icon"="C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\MSEnv\\VSLauncher.exe,-105"

https://stackoverflow.com/questions/78803192/extracting-executables-icon-in-rust

I also found some codes, but none of them seem to support extracting text or image resources according to a certain id...

This looks to be supported safely by the pelite crate

Finally I found some solutions

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.