"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/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 -- http://mail.python.org/mailman/listinfo/python-list