Re: Using Python to add thumbnails to Explorer



"Roger Upole" <rupole@xxxxxxxxxxx> writes:
> "c d saunter" <christopher.saunter@xxxxxxxxxxxx> wrote in message news:djoqn3$s0d$1@xxxxxxxxxxxxxxxxxxxxxx
[...]
> > 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

.



Relevant Pages

  • Re: How to get the actual address of a object
    ... Use assignment. ... Most objects in python a referenced. ... If you're after, coercing one type into another, for example: ... it by using module ctypes. ...
    (comp.lang.python)
  • Re: searching for IDE
    ... > The ActiveState python editor does this. ... PyWin32 extensions by default on Windows. ... ActiveState also has a product called Komodo that is an IDE for a number ...
    (comp.lang.python)
  • Re: Restricting import file lookup for pyd, dll, ...
    ... pywin32 extensions. ... several thousands of file requests in ... the Python installation, locations where there are Python files, and ...
    (comp.lang.python)
  • Re: Using python Serial module on windows
    ... I'm using python Serial from: ... in python under windows using active state python installation, ... says it's missing the module win32file. ... pywin32 extensions on Windows ...
    (comp.lang.python)
  • Re: Restricting import file lookup for pyd, dll, ...
    ... That's because I'm using Python through another application, ... pywin32 extensions. ... several thousands of file requests in ... time to the startup time of the application, ...
    (comp.lang.python)