[python-win32] Re: Extracting share permissions

2006-01-31 Thread Roger Upole
- Original Message - From: "Brad Tilley" <[EMAIL PROTECTED]> To: "Roger Upole" <[EMAIL PROTECTED]> Cc: Sent: Tuesday, January 31, 2006 8:28 PM Subject: Re: [python-win32] Re: Extracting share permissions > Quoting Roger Upole <[EMAIL PROTECT

[python-win32] Re: Extracting share permissions

2006-01-31 Thread Roger Upole
[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_D

[python-win32] Re: Extracting share permissions

2006-01-31 Thread Roger Upole
>> Mark, would you write an example of this using SHARE_INFO_502?>>I'm >> afraid I don't have the time to do it all.>>As a clue:> import >> pprint pprint.pprint(win32net.NetShareEnum(None, >> 502))>([{'current_uses': 0,> 'max_uses': -1,> 'netname': u'IPC$',> >> 'passwd': None,> '