[python-win32] Retrieve Icons Associated To An Extension?
Mark Hammond mhammond at skippinet.com.auWed Mar 30 00:08:54 CEST 2005
- Previous message: [python-win32] Retrieve Icons Associated To An Extension?
- Next message: [python-win32] Retrieve Icons Associated To An Extension?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
One way is code similar to:
from win32com.shell import shell, shellcon
flags = shellcon.SHGFI_LARGEICON | shellcon.SHGFI_ICON | /
shellcon.SHGFI_USEFILEATTRIBUTES
hr, info = shell.SHGetFileInfo(extension,
win32con.FILE_ATTRIBUTE_NORMAL,
flags)
hicon, iicon, attr, display_name, type_name = info
Mark