On Nov 10, 2019, at 4:13 PM, Peng Chen <capan...@gmail.com> wrote:
> 
> then I tried
>     riid = ""
>     ctx = None
>     properties = propsys.SHGetPropertyStoreFromParsingName(
>         file_name, ctx, shellcon.GPS_READWRITE, riid)
> it reported:
> (-2147221005, 'Invalid Class String', None, None)

That’s correct.  “” is not a valid class string.  
SHGetPropertyStoreFromParsingName returns a COM interface, and you have to tell 
it what interface you want.  It is usually IPropertyStore.

What are you trying to do here?  Are you porting some C++ code you found into 
Python?
— 
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.

_______________________________________________
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32

Reply via email to