tags:

views:

308

answers:

4

Skype has a nice custom folder icon for the Skype folder in C:\Program Files.

How do you do register a custom icon for a specific windows (XP and up) folder?

+3  A: 

Take a look at Skype's desktop.ini. It's a hidden file, you might have to enable Show hidden files to see it.

Zr40
[.ShellClassInfo]IconIndex=-910IconFile=C:\Program Files\Skype\Phone\Skype.exeHow do you register an icon?
Mike Trader
" 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."An index where? How do I assign this an icon?
Mike Trader
.exe and .dll files can have several icons embedded. In this case you have to specify which of the icons to use with IconIndex.
Paul
+6  A: 

Customizing Folders with Desktop.ini

Paul
A: 

There is no separate API to customize folders. But you could use WritePrivateProfileString and GetPrivateProfileString functions to manage desktop.ini file.

Kirill V. Lyadvinsky
A: 

> There is no separate API to customize folders.

Wrong. It is part of undocumented Shell apis (called by ordinals)