MrChiliCheese Posted September 6, 2009 Share Posted September 6, 2009 Hi, is it possible to check, if an exe has an icon inside? Link to comment Share on other sites More sharing options...
Zedna Posted September 6, 2009 Share Posted September 6, 2009 ExtractIcon API functionhttp://msdn.microsoft.com/en-us/library/ms648068%28VS.85%29.aspxnIconIndex - If this value is -1, the function returns the total number of icons in the specified file. Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
MrChiliCheese Posted September 6, 2009 Author Share Posted September 6, 2009 (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 September 6, 2009 by yetrael Link to comment Share on other sites More sharing options...
Zedna Posted September 6, 2009 Share Posted September 6, 2009 (edited) #include <WinAPI.au3> $number = _WinAPI_ExtractIconEx(@SystemDir & "\mspaint.exe", -1, 0, 0, 0) MsgBox(0, "", $number) Edited September 6, 2009 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now