Re: [python-win32] Dragdrop shell extension?

2018-06-27 Thread ckkart
Am 2018-06-26 19:14, schrieb web...@totalrewind.com: Now, I want to be able to drop handler such that a link dragged from the browser (system .url file, basically) onto the .urls file will append the new link to those in the list. I understand that file formats which do this sort of thing regist

Re: [python-win32] How to get actual FILETIME from PyTime

2018-06-27 Thread Tim Roberts
Rob Marshall wrote: > Is there a way to get the actual FILETIME value from a PyTime? PyTime isn't actually a type.  It's just a set of conversion routines that produce standard datetime values.  So, your question really is "how to convert a datetime to a Windows FILETIME"?  And here's a Python mod

Re: [python-win32] Where is MakeAbsoluteSD?

2018-06-27 Thread eryk sun
On Wed, Jun 27, 2018 at 3:14 PM, Rob Marshall wrote: > > I saw that, my problem is that I'm trying to use > win32security.ConvertSecurityDescriptorToStringSecurityDescriptor() > which is returning a self-relative SDDL and I need one that is > absolute. Is there a flag that I can set and get an abs

Re: [python-win32] Where is MakeAbsoluteSD?

2018-06-27 Thread Rob Marshall
Hi, I saw that, my problem is that I'm trying to use win32security.ConvertSecurityDescriptorToStringSecurityDescriptor() which is returning a self-relative SDDL and I need one that is absolute. Is there a flag that I can set and get an absolute SDDL from that function? In the Microsoft documentati

Re: [python-win32] How to get actual FILETIME from PyTime

2018-06-27 Thread Rob Marshall
Thank-you. I also figured out that if I want the "actual" FILETIME I can do: >>> get_filetime = lambda i: ((i & 0x),(i - (i & 0x))>>32) >>> get_filetime(13174227726000) (905689856L, 30673639L) >>> low,high = get_filetime(13174227726000) >>> (high<<32)+low 13174227726000

Re: [python-win32] Where is MakeAbsoluteSD?

2018-06-27 Thread Rob Marshall
Hi, At the moment I don't need it at all, but when I use the smbcacls utility from Samba on a Linux system and have it print the security descriptor as an SDDL it gives me something like: O:S-1-5-21-3327876616-1579407131-3503203118-500G:S-1-5-21-3327876616-1579407131-3503203118-513D:P(A;;0x001e01