|
-
Aug 26th, 2000, 06:57 AM
#1
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
-
Aug 26th, 2000, 08:01 AM
#2
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!
-
Aug 26th, 2000, 08:12 AM
#3
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!
-
Aug 26th, 2000, 08:32 AM
#4
My Documents
Contining with the above thread, how can I obtain the name and icon of the My Documents folder.
Thanks
-
Aug 26th, 2000, 10:31 AM
#5
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.
-
Aug 27th, 2000, 06:10 AM
#6
Monday Morning Lunatic
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
-
Aug 27th, 2000, 01:45 PM
#7
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.
-
Aug 27th, 2000, 04:43 PM
#8
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|