Results 1 to 5 of 5

Thread: Registry Icons

  1. #1

    Thread Starter
    Hyperactive Member Asaf_99's Avatar
    Join Date
    Jul 2000
    Location
    Israel
    Posts
    335

    Question

    Where can I access Windows' registry and change the icon for a certain extension?
    The icons is on:
    Code:
    app.path
    ThanX

    Asaf Sagi

    ICQ: 61917199
    E-Mail: [email protected]

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    They're here: HKEY_CLASSES_ROOT\.ext\DefaultIcon, where ext is the file extension.
    However, some file types have a redirector to a different key, which might be something like ASM_auto_file, which would be under HKEY_CLASSES_ROOT\ASM_auto_file\DefaultIcon

    The icon is stored as a reference to a file with resource capabilities (.ico, .dll, .exe). If it's a DLL or EXE, then the filename stored will be in the format "filename.dll,1", where 1 is the number of the icon, starting from 0 (the app's default icon).

    For code to access the registry, go here: http://www.parksie.uklinux.net/registry.zip
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  3. #3

    Thread Starter
    Hyperactive Member Asaf_99's Avatar
    Join Date
    Jul 2000
    Location
    Israel
    Posts
    335
    I meant during runtime, how can I change the default icon to an extension I MADE, NOT AN EXISTING EXT.
    ThanX anyway
    Asaf Sagi

    ICQ: 61917199
    E-Mail: [email protected]

  4. #4
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Simply make a new key for it, in the same style as the others.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  5. #5

    Thread Starter
    Hyperactive Member Asaf_99's Avatar
    Join Date
    Jul 2000
    Location
    Israel
    Posts
    335
    And how am I going to do that?
    Asaf Sagi

    ICQ: 61917199
    E-Mail: [email protected]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width