|
-
Aug 28th, 2000, 02:20 PM
#1
Thread Starter
Hyperactive Member
Where can I access Windows' registry and change the icon for a certain extension?
The icons is on:
ThanX
-
Aug 28th, 2000, 02:26 PM
#2
Monday Morning Lunatic
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
-
Aug 28th, 2000, 03:09 PM
#3
Thread Starter
Hyperactive Member
I meant during runtime, how can I change the default icon to an extension I MADE, NOT AN EXISTING EXT.
ThanX anyway
-
Aug 28th, 2000, 03:12 PM
#4
Monday Morning Lunatic
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
-
Aug 28th, 2000, 04:55 PM
#5
Thread Starter
Hyperactive Member
And how am I going to do that?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|