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
Printable View
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
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!
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!
Contining with the above thread, how can I obtain the name and icon of the My Documents folder.
Thanks
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.
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.
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.
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.