|
-
May 26th, 2009, 10:46 AM
#7
Re: How to get MyComputer Icon?
 Originally Posted by HanneSThEGreaT
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
Tags for this Thread
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
|