There are 238 icons in SHELL32.dll, although 49 through 52 are the same
icon. The icons in SHELL32.dll are numbered from 0 through 237. The
icon in the upper left hand corner is 0, the next one down is 1, the
icon at the bottom of column 1 is 3 and the icon at the top of the
second column is 4.
There looks like there is a gap between 48 and 53, but there is not.
Icons 49 through 52 are no icon, as it were, but they can be selected.
On a folder all you see is the text, no icon.
To find out what the *real* IconIndex numbers are, customize a folder
then open the Desktop.ini and look at the IconIndex=.
IconFile=%SystemRoot%\system32\SHELL32.dll
IconIndex=0
IconFile=%SystemRoot%\system32\SHELL32.dll
IconIndex=237
Those are the real IconIndex numbers, otherwise the desktop.ini would
have no idea what icon to assign to a customized folder.
If you manually change the IconIndex # to 1 in a desktop.ini you are NOT
going to get the icon listed as #1 here...
http://www.virtualplastic.net//images/kmr/shell32.dll_icons.gif
Hint, if you manually change the IconIndex # in a desktop.ini you will
probably have to hit F5 to refresh to the see the icon change.
If you manually change the IconIndex # to 238, icon 0 will be displayed.
If you use 16721, 0 icon will be displayed. If you use 300, icon 0 will
be displayed. I did not try any other numbers, but I think that I could
safely say the any number higher than 237 will display the 0 icon. I am
not a scientist so that may not be scientific, but good enough for me.
I just pasted 1 // default file icon thru 16721 // old delete from
http://www.virtualplastic.net/msgboard/thread.php?forum=1&thread=118
into Notepad and did a Goto Line 1000. Got a Line number out of range
and it sent me to line 238. That's a little trick that I use to count
lines in lists without using my fingers and toes. Does the number 238
look familiar?
The icons in SHELL32.dll are numbered from 0 through 237. Any other
number is meaningless. Where did they come up with numbers like 16721
anyway?
If you have a SHELL32.dll in %windir%\system32\dllcache or
%windir%\ServicePackFiles\i386, it's the same SHELL32.dll that's in
%windir%\system32. Those are used for Windows File Protection.
If you have another SHELL32.dll in C:\WINDOWS\$hf_mig$\KB900725\SP2QFE,
for example, all you have to do to see the icons is paste the path
C:\WINDOWS\$hf_mig$\KB900725\SP2QFE\SHELL32.dll
into the Look for box in the Change Icon for XXX Folder dialog and hit
your Enter key.
You will find that they all probably contain the same icons. I only
looked at the one mentioned above.
IconFile=%SystemRoot%\$hf_mig$\KB900725\SP2QFE\SHELL32.dll
IconIndex=0
IconFile=%SystemRoot%\$hf_mig$\KB900725\SP2QFE\SHELL32.dll
IconIndex=237
A little desktop.ini info.
"IconIndex Set this entry to specify the index for a custom icon. If the
file assigned to IconFile only contains a single icon, set IconIndex to
0." Customizing Folders with Desktop.ini
http://msdn.microsoft.com/library/d...hell_basics/shell_basics_extending/custom.asp
See
The Desktop.ini File
here
A Brand New Web Look for Your Folders (Web Authoring Tools Technical
Articles)
http://msdn.microsoft.com/archive/en-us/dnarwebtool/html/webview.asp?frame=true
Some info on Desktop.ini files pieced together from many sources...
[DeleteOnCopy] means that if you copy a desktop.ini and paste it into
another folder, the copy of the desktop.ini will be blank. Or if you
copy the folder elsewhere – for instance, to back up the contents –
these entries will not be copied.
Owner= The "Owner=" setting is set to the new user's logon name.
Personalized= I have no idea what this means.
PersonalizedName= Name that Windows Explorer displays for the folder.
I.e. Shared Music instead of My Music, My Documents instead of Documents.
ConfirmFileOp=0 avoids the You Are Deleting a System Folder warning when
deleting or moving the folder. To preserve the warning, use
ConfirmFileOp=1.
NoSharing=1 prevents the folder from being shared.
IconFile=Relative path to the icon file. If you want to specify a custom
icon for the folder, set this entry to the icon's file name. The .ico
file extension is preferred, but it is also possible to specify .bmp
files, or .exe and .dll files that contain icons. If you use a relative
path, the icon will be available to people who view the folder over the
network. You must also set the IconIndex entry.
IconIndex=n Set this entry to specify the index for a custom icon. If
the file assigned to IconFile only contains a single icon, set IconIndex
to 0.
InfoTip= Set this entry to an informational text string. It will be
displayed as an infotip when the cursor hovers over the folder. If the
user clicks the folder in a Web view, the information text will be
displayed in the folder's information block, below the standard
information.