Sign in to follow this  
Followers 0
MrChiliCheese

Check if *.exe has an icon inside

4 posts in this topic

Hi,

is it possible to check, if an exe has an icon inside?

Share this post


Link to post
Share on other sites



ExtractIcon API function

http://msdn.microsoft.com/en-us/library/ms648068%28VS.85%29.aspx

nIconIndex - If this value is -1, the function returns the total number of icons in the specified file.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Thanks, but i'm new to the dll stuff. I looked around, i'm missing what is meant with:

hInst
[in] Handle to the instance of the application calling the function.

So far i have this code:

$dll = DllOpen ("shell32.dll")
$test = DllCall($dll, "int", "ExtractIcon", "str", @SystemDir & "\mspaint.exe", "uint", 0)
MsgBox(0, "", $test)
DllClose ($dll)
Edited by yetrael

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  
Followers 0