Displaying 1 result from an estimated 1 matches for "dacl_defaulted".
2006 Mar 20
5
Need some ACL help for win32-file
...umentError, get_last_error
end
# No DACL exists
if (control.unpack(''L'').first & SE_DACL_PRESENT) == 0
raise ArgumentError, ''No DACL present: explicit deny all''
end
dacl_present = [0].pack(''L'')
dacl_defaulted = [0].pack(''L'')
acl_ptr = [0].pack(''L'')
val = @@GetSecurityDescriptorDacl.call(
sec_buf,
dacl_present,
acl_ptr,
dacl_defaulted
)
if val == 0
raise ArgumentError, get_last_error
en...