[python-win32] Create _reg_clsid?

Mark Hammond skippy.hammond at gmail.com
Mon May 23 06:52:19 CEST 2011


On 21/05/2011 2:58 AM, Jun Koi wrote:
> hi,
>
> i am trying to create my first context menu shell extension. i base my
> code on the sample context_menu.py. i have a question: how can i
> create my "_reg_clsid" for my extension?

I think you just want:

 >>> import pythoncom
 >>> pythoncom.CreateGuid()
IID('{0B1CC054-749C-4C35-8514-EA15CA86E87D}')
 >>>

Mark


More information about the python-win32 mailing list