Not sure how ctypes works, but with Pywin32
Pythoncom24.dll is actually registered as the
shell extension dll, and it passes calls to methods
of a Python class you create that implements the
interface methods.
Roger
"c d saunter" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECT
John J. Lee ([EMAIL PROTECTED]) wrote:
: "Roger Upole" <[EMAIL PROTECTED]> writes:
: 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
"Roger Upole" <[EMAIL PROTECTED]> writes:
> "c d saunter" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
[...]
> > 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/she
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.
Roger
"c d saunter" <[EMAIL PROTECTED]> wrot
Hi Roger,
Thanks for the info - I was actually interested in custom
per file thumbnails rather than icons, but your message sentt me
pouring through seemingly relevent parts of the registry - however
what I need isn't there.
Turns out I need to use a .dll shell
As you guessed, the icon locations are stored in the registry.
There's a key under HKEY_CLASSES_ROOT for each
registered file type, with a default value holding the class name.
Under the class name, there's a DefaultIcon key that gives
the path to the icon. Using python files an an example, you
ha
Greetings All,
In Widows Explorer there is a thumbnail view, where you see images as
thumbnails.
Applications such as MS Office and OpenOffice, when installed, cause their
respective filetypes
to be previewed as thumbnails as well.
Thumbnails are stored in the Thumbs.db hidden file.