Displaying 1 result from an estimated 1 matches for "ace_ptr".
2006 Mar 20
5
Need some ACL help for win32-file
...@@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'')[3]
ace_ptr = [0].pack(''L'')
# stuck here
0.upto(ace_count - 1){ |i|
if @@GetAce.call(acl_buf, i, ace_ptr) == 0
next
end
ace_buf = 0.chr * 4
@@memcpy.call(ace_buf, ace_ptr.unpack(''L'').first, 4)
p ace_bu...