search for: length_needed

Displaying 1 result from an estimated 1 matches for "length_needed".

2006 Mar 20
5
Need some ACL help for win32-file
...9;'m stuck at GetAce(). If someone could help me finish up this method, I would be most appreciative. Also, should we consider dumping this approach in favor of a OLE + WMI solution, using Win32_LogicalFileSecuritySetting ? Dan def self.get_permissions(file) current_length = 0 length_needed = [1].pack(''L'') sec_buf = '''' loop do bool = @@GetFileSecurity.call( file, DACL_SECURITY_INFORMATION, sec_buf, sec_buf.length, length_needed ) if bool == 0 &...