Jump to content
Sign in to follow this  

Idenity "empty" icon from dll?

Recommended Posts


I made just a quicky little program that will let me browse through the icons contained in shell32.dll. I create an icon in my gui and use the following code to set the icon image:

GUICtrlSetImage(-1, $file , $icon)

Where $file = "shell32.dll" and $icon is the icon number. How can I read that specific icon to see if it is blank? I am thinking of making my program just list all of the icons in shell32.dll and possibly from others and want it to stop listing after so many "empty" icons that I believe would be the end of the icon list?

I've seen some other programs that will do that already for me, but I want to make it myself. go figure!

any help would be appreciated.

Share this post

Link to post
Share on other sites

Calling ExtractIcon function with -1 as icon index will return number of icons in file:

$ret = DllCall("shell32.dll", "int", "ExtractIcon", "int", 0, "str", "shell32.dll", "int", -1)
MsgBox (0, "Icons:", $ret[0])

Edit: what weird with [autoit] tag?

Edited by Lazycat

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.