Re: [python-win32] Overlay Icon Question...

2008-04-15 Thread Tim Golden
Andrea Gavana wrote: > Thank you a lot, now everything is perfectly clear. I made this class > communicate with the registry where I store a file name (in which I > have all my files for which I want the overlay icon), and it works > like a charm, with IsMemberOf checking this particular registry k

Re: [python-win32] Accessing a Remote Registry....

2008-04-15 Thread Tim Golden
Quick answer because I don't have time for a slow one right now :). Do something like this: import wmi reg = wmi.WMI ( "other-box", user="tim", password="secret", namespace="root/default" ).StdRegProv TJG ___ python-win32 mailing list pytho

[python-win32] Accessing a Remote Registry....

2008-04-15 Thread tom.moulton
I have found many references to accessing a registry remotely; however, none that work for me. Admittedly, I am a bit green on understanding Windows security permissions and the like. I have tried a number of solutions (i.e., wmi, win32api, _winreg), but to no avail. I am trying to update reg

Re: [python-win32] Overlay Icon Question...

2008-04-15 Thread Andrea Gavana
Hi Tim & All, On Tue, Apr 15, 2008 at 3:20 PM, Tim Golden wrote: > > Andrea Gavana wrote: > > Yes, thank you, it helps a lot... although I still have some doubts. > > These are my modifications of the class Roger posted: > > > > class SIOI(object): > > _reg_clsid_='{02844251-42C2-44CA-B43D-424

Re: [python-win32] Overlay Icon Question...

2008-04-15 Thread Tim Golden
Tim Golden wrote: > Andrea Gavana wrote: >> def GetOverlayInfo(self): >> return (r'icons/KSVROverlay.ico', 0, shellcon.ISIOI_ICONFILE) By the way, I'm not how the callback mechanism will cope with relative paths like this. Not very well, I guess. Bear in mind also that the shell functi

Re: [python-win32] Overlay Icon Question...

2008-04-15 Thread Tim Golden
Andrea Gavana wrote: > Yes, thank you, it helps a lot... although I still have some doubts. > These are my modifications of the class Roger posted: > > class SIOI(object): > _reg_clsid_='{02844251-42C2-44CA-B43D-424FCE4F4660}' > _reg_progid_='K-SVR.IShellIconOverlayIdentifier' > _reg_d

Re: [python-win32] Overlay Icon Question...

2008-04-15 Thread Andrea Gavana
Hi All, On Tue, Apr 15, 2008 at 2:44 PM, Andrea Gavana wrote: > Hi Tim, Roger & All, > > > On Tue, Apr 15, 2008 at 10:03 AM, Tim Golden wrote: > > Andrea Gavana wrote: > > > Hi Roger, > > > > > > On Tue, Apr 15, 2008 at 12:21 AM, Roger Upole wrote: > > >> I've been meaning to look at how this work

Re: [python-win32] Overlay Icon Question...

2008-04-15 Thread Andrea Gavana
Hi Tim, Roger & All, On Tue, Apr 15, 2008 at 10:03 AM, Tim Golden wrote: > Andrea Gavana wrote: > > Hi Roger, > > > > On Tue, Apr 15, 2008 at 12:21 AM, Roger Upole wrote: > >> I've been meaning to look at how this works for some time, > >> so I took a few minutes to cook up an example (attached).

[python-win32] Overlay Icon Question...

2008-04-15 Thread Roger Upole
Tim Golden wrote: > Roger Upole wrote: >> Sometimes I think I'm in an entirely different universe ;). > > Hehe. If you don't mind my asking, where are you based? > I'm on the east coast of the US, not far from Ocean City, MD. Regarding the redundant IID_IDispatch you asked about, I'm not even s

Re: [python-win32] Overlay Icon Question...

2008-04-15 Thread Tim Golden
Roger Upole wrote: > Sometimes I think I'm in an entirely different universe ;). Hehe. If you don't mind my asking, where are you based? > Also, you'll probably need to log off and log back on for changes to > the class to take effect. This is probably the biggest pain when it comes to developin

[python-win32] Overlay Icon Question...

2008-04-15 Thread Roger Upole
"Tim Golden" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Andrea Gavana wrote: >> Hi Roger, >> >> On Tue, Apr 15, 2008 at 12:21 AM, Roger Upole wrote: >>> I've been meaning to look at how this works for some time, >>> so I took a few minutes to cook up an example (attached). >> >>

Re: [python-win32] Overlay Icon Question...

2008-04-15 Thread Tim Golden
Andrea Gavana wrote: > Hi Roger, > > On Tue, Apr 15, 2008 at 12:21 AM, Roger Upole wrote: >> I've been meaning to look at how this works for some time, >> so I took a few minutes to cook up an example (attached). > > Thank you very much for the sample! It is really enlighting. I have > however so

Re: [python-win32] Overlay Icon Question...

2008-04-15 Thread Tim Golden
Roger Upole wrote: > class SIOI: [...] > _com_interfaces_=[shell.IID_IShellIconOverlayIdentifier, > pythoncom.IID_IDispatch] Was the IDispatch a hangover from a cut-and-paste? I can't see why it would be there otherwise. Or have I missed sthg? TJG

Re: [python-win32] Overlay Icon Question...

2008-04-15 Thread Andrea Gavana
Hi Roger, On Tue, Apr 15, 2008 at 12:21 AM, Roger Upole wrote: > I've been meaning to look at how this works for some time, > so I took a few minutes to cook up an example (attached). Thank you very much for the sample! It is really enlighting. I have however some difficulty to understand it (sor

Re: [python-win32] Overlay Icon Question...

2008-04-15 Thread Tim Golden
Roger Upole wrote: > I've been meaning to look at how this works for some time, > so I took a few minutes to cook up an example (attached). (Thanks. I didn't really have enough time to put this together at the moment!) > def GetPriority(self): > return 50 I was wondering how all the