search for: sec_buf

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

Did you mean: sec_bus
2006 Mar 20
5
Need some ACL help for win32-file
...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 && @@GetLastError.call != ERROR_INSUFFICIE...