Re: [python-win32] Extract icon from exe files

2009-04-28 Thread EISEN Nicolas
Tim Roberts wrote: EISEN Nicolas wrote: / from win32gui import * import win32con listHicon = ExtractIconEx(c:\OpenOffice.exe,0) test = LoadImage(listHicon[0],c:\OpenOffice.exe,0,0,0,win32con.LR_DEFAULTSIZE) tupleIcon = GetIconInfo(test)/ To use GetIconInfo

Re: [python-win32] Extract icon from exe files

2009-04-28 Thread EISEN Nicolas
Tim Roberts wrote: EISEN Nicolas wrote: / from win32gui import * import win32con listHicon = ExtractIconEx(c:\OpenOffice.exe,0) test = LoadImage(listHicon[0],c:\OpenOffice.exe,0,0,0,win32con.LR_DEFAULTSIZE) tupleIcon = GetIconInfo(test)/ To use GetIconInfo

Re: [python-win32] Extract icon from exe files

2009-04-27 Thread EISEN Nicolas
Tim Roberts wrote: EISEN Nicolas wrote: I understand I will use these functions, but my problem is to found how? I have difficulties to understand how use the arguments : I try some combinations and it's doesn't work. Two big problems: 1 – When I read MSDN’s API for LoadIcon, How I

[python-win32] Extract icon from exe files

2009-04-20 Thread EISEN Nicolas
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