In Total Commander, the Icon Index represents the resource sequence number rather than the ID, which can cause the resource with the same ID to be misaligned when the number of resources changes due to different DLL versions.
For example, this red cross in the picture below has an index that is one higher in Win11 than in Win10, causing my icons to display inconsistently across different systems.
Image: https://github.com/user-attachments/assets/b5a06f64-a491-4294-b02f-9a0fe7e9a39c
So later I found out that you can use a negative sign to represent a resource ID to point to an icon, and this ID will not be changed by Microsoft, just like the desktop.ini in Windows' default folders. For example, in C:\Users\[User Name]\Desktop\desktop.ini, IconResource points to the desktop icon.
Code: Select all
[.ShellClassInfo]
LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21769
IconResource=%SystemRoot%\system32\imageres.dll,-183Image: https://github.com/user-attachments/assets/4ed999e1-c629-4a04-9afc-32b32ca7d00f
In 11.57
The icon index field in the text area will forcibly use positive numbers, causing any modifications I make to the bar to change negative IDs to 0, thereby losing the icons I specified.
Image: https://github.com/user-attachments/assets/ea29b63e-5d29-47d1-89ae-0cd662797202


