Results 1 to 8 of 8

Thread: Namespace Names and Icons

  1. #1
    Guest

    Question

    Hi,

    Does anybody know how to obtain the names and icons of namespaces of Windows, for example My Computer and Control Panel.

    Thanks;
    Richard Moss

  2. #2
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    The only way I know how to is to read the Registry.
    In HKEY_CLASSES_ROOT\CLSID you've got all the Class Identifiers here's a list of a few:
    • {20D04FE0-3AEA-1069-A2D8-08002B30309D} = My Computer
    • {645FF040-5081-101B-9F08-00AA002F954E} = Recycle Bin
    • {21EC2020-3AEA-1069-A2DD-08002B30309D} = Control Panel
    • {208D2C60-3AEA-1069-A2D7-08002B30309D} = Network Neighborhood
    • {2227A280-3AEA-1069-A2DE-08002B30309D} = Printers

    The Default value of these keys gives you the names and you have a key under that that is called DefaultIcon that gives you the path to the icon.

    Good luck!

  3. #3
    Guest

    Thumbs up Thanks!

    Joacim,

    That was fast work! Thanks a lot, I have just took a trawl through my registry, and it looks like I have the information I need.

    Thanks again!

  4. #4
    Guest

    Question My Documents

    Contining with the above thread, how can I obtain the name and icon of the My Documents folder.

    Thanks

  5. #5
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    I can't really tell because on my WinNT 4.0 mashine there is no such folder.
    I've got a Personal folder instead and that one is just located in my profile path.

  6. #6
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169

    Try {450D8FBA-AD25-11D0-98A8-0800361B1103}

    No...I posted it, then tested it. It wouldn't work on my machine, but I thought that the number might be useful for someone.
    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

  7. #7
    Guest

    Well, it does appear to work on my Windows 2000 partition, however it's not in the same registry section as the others which Joacim noted.

  8. #8
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    No I shouln't be at the same place because the My Documents folder could be on different paths for different users. So I suppose it is located in the HKEY_CURRENT_USER somewhere.

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