
• Unfortunately, you are totally right…

Claude
Clo
Moderators: Hacker, petermad, Stefan2, white
Code: Select all
REGEDIT4
[-HKEY_CLASSES_ROOT\.ico]
[HKEY_CLASSES_ROOT\.ico]
@="icofile"
"PerceivedType"="image"
"Content Type"="image/x-icon"
[HKEY_CLASSES_ROOT\.ico\PersistentHandler]
@="{098f2470-bae0-11cd-b579-08002b30bfeb}"
[HKEY_CLASSES_ROOT\.ico\UndoClass]
@="icofile"
[HKEY_CLASSES_ROOT\.ico\shellex]
[HKEY_CLASSES_ROOT\.ico\shellex\{BB2E617C-0920-11D1-9A0B-00C04FC2D6C1}]
[-HKEY_CLASSES_ROOT\icofile]
[HKEY_CLASSES_ROOT\icofile]
@="Ikon"
"ImageOptionFlags"=dword:00000000
[HKEY_CLASSES_ROOT\icofile\DefaultIcon]
@="%1"
Code: Select all
REGEDIT4
Thanks for the compliment, but it's ghisler's job to finally fix all the TC bugs related to the registry.Maybe our Master at Registry a.k.a. icfu has a clue… ?
Thanks, I corrected my previous posting.But it needs only to add a header as :
Code:
REGEDIT4
It's always a bit difficult to suggest what to do without knowing what you are doing.If you can explain what is wrong
I'm not totally sure if I haven't lost track here, but:Lefteous wrote:2ghisler(Author)It's always a bit difficult to suggest what to do without knowing what you are doing.If you can explain what is wrong
I suggest to read the default string of HKEY_CLASSES_ROOT\.ico\ first. The value of this string is the name of the subkey in HKEY_CLASSES_ROOT\ to open. The key (for example HKEY_CLASSES_ROOT\icofile\ has another subkey called DefaultIcon. The default string contains the information where to read the icon from (%1 here).
I have also tried this with SHGetFileInfo and it returns the proper icon out of the box without messing around with our beloved registry.