Extract an icon from a dll?

sarthemaker

Active member
Joined
Sep 4, 2009
Messages
36
Programming Experience
5-10
I am trying to show all the files in a given directory, which I have done already, but now I am trying to give each file an icon according to it's extension. I have made a code to get the path to the icon for it's extension from the registry, which gives me something like this: "C:\Windows\system32\imageres.dll,-102" But how can I retrieve this icon?
 
Do you think that you could show me an example of how to use it with the dll, and the number of the icon? "C:\Windows\system32\imageres.dll,-102" because I can only extract the dll which gives me the first icon..
 
Go for the file path of interest, for example path "c:\some.jpg" will give you the icon shown in Explorer for the some.jpg file.
 
Back
Top