Skip to content

Fix DLL to use Win32 native ICON resources for Windows icon browser compatibility#4

Draft
Claude wants to merge 3 commits into
mainfrom
claude/fix-dll-icon-accessibility
Draft

Fix DLL to use Win32 native ICON resources for Windows icon browser compatibility#4
Claude wants to merge 3 commits into
mainfrom
claude/fix-dll-icon-accessibility

Conversation

@Claude
Copy link
Copy Markdown

@Claude Claude AI commented Mar 3, 2026

The generated .dll used .NET embedded resources, which are inaccessible to Windows Explorer's icon picker and other Win32 icon browsers. These tools require native RT_GROUP_ICON resources compiled via RC.EXE.

Changes

  • ResourceScriptGenerator: C# console application that scans Icons directory and generates .rc resource script + resource.h header with sequential resource IDs (101-621) for all 521 icons
  • BuildResourceDll.bat: Automated build orchestration - builds C# generator, detects Visual Studio/Windows SDK tools, compiles resources with RC.EXE, links resource-only DLL with /NOENTRY flag
  • README.md: Updated with streamlined build requirements and instructions for three access options (direct files, pre-compiled DLL, build yourself)

Output

Running BuildResourceDll.bat produces bin/WindowsIcons.dll containing Win32 native ICON resources accessible to:

  • Windows Explorer "Change Icon" dialog
  • ExtractIcon, LoadIcon, SHGetFileInfo APIs
  • Icon extraction utilities

The .NET project (WindowsIcons.csproj) remains for backward compatibility but is documented as incompatible with icon browsers.

Original prompt

This section details on the original issue you should resolve

<issue_title>Generated .dll file isn't readable by Windows 11 Icon Browers</issue_title>
<issue_description>For some reason, while the .ico files are available through DotPeek and are included within the .dll as embedded resources, they are not accessible to folders.

This defeats the whole purpose of the .dll compilation.

Not exactly sure why this is happening. I've missed something along the way, perhaps I'm just too tired right now. 😅</issue_description>

Comments on the Issue (you are @claude[agent] in this section)

Co-authored-by: HaydenReeve <39004735+HaydenReeve@users.noreply.github.com>
@Claude Claude AI changed the title [WIP] Fix accessibility of .ico files in generated .dll Fix DLL to use Win32 native ICON resources for Windows icon browser compatibility Mar 3, 2026
Comment thread BUILD_INSTRUCTIONS.md Outdated
Comment thread BUILD_INSTRUCTIONS.md Outdated
@HaydenReeve HaydenReeve added the enhancement New feature or request label Mar 4, 2026
…mentation

Co-authored-by: HaydenReeve <39004735+HaydenReeve@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Generated .dll file isn't readable by Windows 11 Icon Browers

2 participants