[python-win32] Extract icon from exe files
EISEN Nicolas
neisen at linbox.com
Mon Apr 20 16:56:26 CEST 2009
Hi,
After search, I found many function to get Handler from exe (or dll)
file icons . But I don’t understand how use the Handler …
For example:
/>>> Import win32gui
> >> i= win32gui.ExtractIcon(0,'e:\\dxdiag.exe',0)
> >> icon = win32gui.LoadIcon ( i , 0)/
Or with ExtractIconEx to get a list of all icons, I’m always with many
Handlers without knowing how to save or write it in file.
The finality is to extract the exe file icon, and next, save the picture
on the disk.
Thanks for your help.
More information about the python-win32
mailing list