text_combined: andrea gavana ajsacnpyxldxgmailcom hi tue apr 15 2008 244 pm andrea gavana wrote hi tim roger tue apr 15 2008 1003 tim golden wrote andrea gavana wrote hi roger tue apr 15 2008 1221 roger upole wrote ive meaning look works time took minutes cook example attached thank much sample really enlighting however difficulty understand sorry dumb questions think rogers different timezone ill answer purposes expediency obviously speak hes online really want look httpmsdn2microsoftcomenuslibrarybb776858vs85aspxtopic306117 inside story 1 actually use sioi class class dont simply mechanism serving com object contains methods shell calling back theres magic usecommandline call behalf register class com server shell expects tried run sample creating various files hard drive dont really know ismemberof accepting fname make overlay file name icon name something else find icon file exists unless happen something j drive exactly matches rogers example used tortoisesvn icons machine cprogram filestortoisesvniconsclassictortoiseaddedico replace path getoverlayinfo whatever youve chosen icon overlaid miniature whatever existing icon file ismemberof method return s_ok every file whose icon want overlaid first param filename rogers example simply looks world overlay filename 2 lets suppose want assign overlayed icon particular file directory lets say file called hellodata directory contains also files data extension assign overlayed icon particular file change ismemberof function say something like ospathbasename fname hellodata return winerrors_ok return winerrore_fail hope helps yes thank helps lot although still doubts modifications class roger posted class sioiobject _reg_clsid_0284425142c244cab43d424fce4f4660 _reg_progid_ksvrishelliconoverlayidentifier _reg_desc_python implementation ishelliconoverlayidentifier _public_methods_ getoverlayinfogetpriorityismemberof _com_interfaces_shelliid_ishelliconoverlayidentifier pythoncomiid_idispatch __name__ sioi def __init__self filenames selffilenames filenames def addfileself filename filename selffilenames selffilenamesappendfilename def removefileself filename filename selffilenames selffilenamesremovefilename def getoverlayinfoself return riconsksvroverlayico 0 shellconisioi_iconfile def getpriorityself return 50 def ismemberofself fname attributes fname selffilenames return winerrors_ok return winerrore_fail def iconoverlayfilenames import win32comserverregister overlayclass sioifilenames win32comserverregisterusecommandlineoverlayclass keynamersoftwaremicrosoftwindowscurrentversionexplorershelliconoverlayidentifiersksvroverlayhandler keywin32apiregcreatekeywin32conhkey_local_machine keyname win32apiregsetvaluekey none win32conreg_sz sioi_reg_clsid_ return overlayclass 1 app launched database returns list file names full path stored inside variable filenames 2 call method iconoverlay initializes class sioi filenames 3 ismemberof method file name filenames list icon overlayed cant see icon overlayed pc even logging restarting something stupid sure althought newbie find wrong suppose cant initialize sioi class cant test ismemberof using filenames list missing something another way accomplish looking thank suggestions sorry break something unusual happened start app soon open file dialog app get nice error pythoncom dmyprojectsksvrksvrpy registered ksvrishelliconoverlayidentifier registered ksvrishelliconoverlayidentifier open file dialog pythoncom error error serverpolicy could create instance traceback recent call last file cpython25libsitepackageswin32comserverpolicypy line 144 createinstance return retobj_createinstance_clsid reqiid file cpython25libsitepackageswin32comserverpolicypy line 202 _createinstance_ myob call_funcclassspec file cpython25libsitepackageswin32comserverpolicypy line 739 call_func return resolve_funcspecargs __init__ takes exactly 2 arguments 1 given pythoncom error unexpected gateway error traceback recent call last file cpython25libsitepackageswin32comserverpolicypy line 144 createinstance return retobj_createinstance_clsid reqiid file cpython25libsitepackageswin32comserverpolicypy line 202 _createinstance_ myob call_funcclassspec file cpython25libsitepackageswin32comserverpolicypy line 739 call_func return resolve_funcspecargs __init__ takes exactly 2 arguments 1 given pythoncom error cpyfactorycreateinstance failed create instance 80004005 idea means sure messed something andrea imagination weapon war reality httpxoomeraliceitinfinity77 _______________________________________________ pythonwin32 mailing list kpitckaew45pythonorg httpmailpythonorgmailmanlistinfopythonwin32 thu 07 aug 2008 164933 0100 pythonwin32 overlay icon question