Using Python to add thumbnails to Explorer
John J. Lee
jjl at pobox.com
Sun Oct 30 17:18:49 EST 2005
"Roger Upole" <rupole at hotmail.com> writes:
> "c d saunter" <christopher.saunter at durham.ac.uk> wrote in message news:djoqn3$s0d$1 at heffalump.dur.ac.uk...
[...]
> > Turns out I need to use a .dll shell extension as per
> > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/
> > shellcc/platform/shell/programmersguide/shell_int/shell_int_extending/
> > extensionhandlers/shell_ext.asp
> >
> > Not so simple, and not (directly) a job for Python.
>
> Sorry, I didn't realize you meant per-file.
> However, Pythoncom supports both the interfaces
> (IExtractIcon and IPersistFile) specified on the page
> you referenced, so you ought to be able to implement
> an icon handler with the Pywin32 extensions.
Or, if not, then you can do it with module ctypes.
http://starship.python.net/crew/theller/ctypes/
There's an O'Reilly book called something like "win32 shell
programming" that covers this stuff.
John
More information about the Python-list
mailing list