Peng Chen wrote:
I'm working on a script to shift video media creation time. .... I can see there is a function PyIPropertyStore.SetValue(key, value) and PyIPropertyStore.Commit()to write the date back, but I'm not sure how to construct the value because it requires PyPROPVARIANT type. I can't figure out any where to import this type and doesn't know how to construct it.
PyPROPVARIANT is generally a return type. In a case like this, I would expect that you would simply pass the datetime value, and the interface code would convert it into a variant. Have you tried that? Did you get an error?
-- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc.
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32