Displaying 1 result from an estimated 1 matches for "acl_buf".
Did you mean:
ace_buf
2006 Mar 20
5
Need some ACL help for win32-file
...ck(''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
end
acl_buf = 0.chr * 8
@@memcpy.call(acl_buf, acl_ptr.unpack(''L'').first, 8)
if acl_buf.unpack(''CCSSS'').first == 0
raise ArgumentError, ''DACL is NULL: implicit access grant''
end
ace_count = acl_buf.unpack(''CCSSS...