[Sorry, somehow I massively screwed up the format the first time] There are a couple of different options for persisting a security descriptor.
buffer(security_descriptor)[:] retrieves the raw bytes in binary form. This can be passed to pywintypes.SECURITY_DESCRIPTOR to recreate the PySECURITY_DESCRIPTOR. Also, you can use win32security.ConvertSecurityDescriptorToStringSecurityDescriptor to create a text representation and win32security.ConvertStringSecurityDescriptorToSecurityDescriptor to recreate the PySECURITY_DESCRIPTOR. That reminds me, there's a bug in the routine in win32net that parses info out of dictionaries. If you pass in None to indicate a NULL security descriptor, you get an access violation. I'll get a fix in for that soon. Roger _______________________________________________ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32