Results 1 to 6 of 6
  1. #1
    Silver Lounger
    Join Date
    Jan 2001
    Location
    Swanzey, New Hampshire, USA
    Posts
    1,707
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Finding the #'s for icons in Shell32.dll

    I'm trying to find what numbers belong to the individual icons in Shell32.dll. I am creating a Desktop.ini file that has the path and icon # for a particular icon found in that file. I opened up Shell32.dll with ResourceHacker and looked in the "Icons" and "Icon Group" sections but none of the numbers in the tree correlate to the icons displayed. Anyone know of a way to do this? <IMG SRC=http://www.the-highway.com/Smileys/scratch1.gif>

    Jeff
    Jeff
    simul iustus et peccator

  2. #2
    Banned Member
    Join Date
    Jul 2002
    Location
    Newport Richey, Florida, USA
    Posts
    2,149
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Finding the #'s for icons in Shell32.dll

    Not sure about that, but how about something like this Get Icon

  3. #3
    Silver Lounger
    Join Date
    Jan 2001
    Location
    Swanzey, New Hampshire, USA
    Posts
    1,707
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Finding the #'s for icons in Shell32.dll

    <P ID="edit" class=small>(Edited by Pilgrim on 11-Aug-03 17:11. Solution Found!)</P>Thanks for the suggestion. I also have "Icon Snatcher" which shows all the icons in the Shell32.dll, but again.... NO NUMBERS are associated with them. <img src=/S/hairout.gif border=0 alt=hairout width=31 height=23> <img src=/S/laugh.gif border=0 alt=laugh width=15 height=15>

    Okay, I tried "GetIcons" but oh man.... it only scans folders. So when I had it scan the C:WindowsSystem32 folder... I had to stop it prematurely as it had already dumped over 4000 icons into the destination folder. After browsing through the ones it did find, I tried the numbers found in the file name and they were not the correct numbers either.... Oh well.

    Got it figured out.... starting in the upper left corner and counting from "0" going from top to bottom and left to right I was able to get the right number of the icon I was wanting to use. <img src=/S/grin.gif border=0 alt=grin width=15 height=15>

    Jeff
    Jeff
    simul iustus et peccator

  4. #4
    Gold Lounger
    Join Date
    Feb 2003
    Location
    Wardrobe Malfunction Junction, Derry
    Posts
    2,953
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Finding the #'s for icons in Shell32.dll

    Pilgrim--

    By numbers do you mean numerical counting or CLSID type numbers assigned to some of the System Icons? In other words is there a convention to assigning numbers to native icons--there are hundreds of them in various folders of System 32, Windows folders, Program and Hidden Folders and I know that's not news to you, but I'm trying to understand if you want to organize them or there is a number convention I should know about.

    I haven't used Heaven Tools PE Explorer for harvesting icons--I collect icon harvesters, but like the fun of breaking and going into every folder to see if I can grab some icons, including downloaded program folders manually and then when I like a stash I assign it a rating or a short description. But PE Explorer is praised for being a great organizer and it may assign some order and a number to your icons. Has 30 day trial.

    I don't know if these numbers are arbitrary or official--I never thought in terms of the stash over at shell32.dll in terms of number assignments, but Kelly has numbers assigned in this list here:

    Icons - Shell32: %SystemRoot%System32shell32.dll (IT Library)

    0 Unassigned file types 18 Networked computers 36 Start menu folder 54 Document to document
    1 Document 19 Small folder and window 37 Printers folder 55 Documents folder to folder
    2 Window 20 Sm open folder with paper 38 Fonts folder 56 Pen writing a folder label
    3 Closed folder 21 Gears 39 Windows flag 57 Comp, gears, open folder
    4 Open folder 22 Find file 40 CD (music) 58 Configuration file
    5 5 1/4-inch disk 23 Help 41 Green tree 59 Text file
    6 3 1/2-inch disk 24 Window - hourglass cursor 42 Multiple documents 60 Window with gears
    7 Removable drive 25 Monitor 43 Find file 61 Gears image on paper
    8 Hard drive 26 External removable disk 44 Find on networked comp 62 Font file
    9 Network drive 27 Monitor 45 Monitor on computer case 63 TrueType font file
    10 Network drive (disconn) 28 Shared folder 46 Control Panel folder 64 Window - hourglass cursor
    11 CD-ROM drive 29 Shortcut arrow 47 Printers folder 65 Are you sure...delete files?
    12 RAM chip 30 Larger shortcut arrow 48 Printer image on paper pad 66 Tape backup
    13 Globe 31 Empty Recycle Bin 49 Network printer 67 CD in drive
    14 Network cable connection 32 Full Recycle Bin 50 Print to file (3 1/2-in disk) 68 Defrag
    15 Network computer 33 Dial-Up Networking folder 51 Alternate full Recycle Bin 69 Printer
    16 Printer 34 Desktop 52 Alternate full Recycle Bin 70 Network printer
    17 Networked computers 35 Control Panel folder 53 Alternate full Recycle Bin 71 Print to file

    I'm not sure of the source for "IT Library she has listed at the top of this list.

    SMBP

  5. #5
    Platinum Lounger
    Join Date
    Nov 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    5,016
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Finding the #'s for icons in Shell32.dll

    Hi Pilgrim

    I'm guessing you need the numbers as used by the registry. I can only vouch for 98SE, and only for the few that I've tinkered with, but I believe that the attachment shows the correct numbering system. Numbers run top to bottom, starting at 0 in the top left. The OpenFolder icon, 5th down in the far left column, is therefore #4.

    I think there's also a "catch" with some of the resource viewers. Some show every image contained within each icon (different resolutions) while others, like the one I used below, show only the first image. This can be very confusing wrt the numbering you speak of. Hope this helps.

    Alan
    Attached Images Attached Images

  6. #6
    Silver Lounger
    Join Date
    Jan 2001
    Location
    Swanzey, New Hampshire, USA
    Posts
    1,707
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Finding the #'s for icons in Shell32.dll

    Thanks Alan,

    I will guess that you didn't see that I edited my original post where I wrote that I had everything figured out including the numbering system for the icons in the Shell32.dll. <img src=/S/grin.gif border=0 alt=grin width=15 height=15> What you also said about some resource viewers is very true. Using ResourceHacker all the icons were displayed, including the different sizes and resolutions. That's fine if you are going to save an icon and use it elsewhere but it doesn't help to find out what the number is that belongs to it when you want to simply refer to it in something like a Desktop.ini file.

    Bottom line.... I'm all set and have accomplished what I set out to do. <img src=/S/groovin.gif border=0 alt=groovin width=21 height=21>

    Jeff
    Jeff
    simul iustus et peccator

Posting Permissions

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