Quote Originally Posted by HanneSThEGreaT View Post
ExtractIconFromFile will only work with exe files ( at least to my knowledge )
You are right with needing API though.

You need the following to achieve what you want :

API
SHGetFileInfo

Structure
SHFILEINFO

Constants
SHGFI_ICON
SHGFI_SMALLICON
SHGFI_LARGEICON

I did something similar in VB.NET ( unfortunately ), here's the link :
http://www.codeguru.com/forum/showthread.php?t=417770

It should give you an idea of what is needed.

I hope my advice was helpful.
i already have that and working, but this only works for File and folders

i want to get MyComputer icon wich not have an path and i need Desktop etc...

icons from: SpecialFolders