Method: Chef::ReservedNames::Win32::Security::ACE#initialize
- Defined in:
- lib/chef/win32/security/ace.rb
#initialize(pointer, owner = nil) ⇒ ACE
Returns a new instance of ACE.
30 31 32 33 34 35 36 37 38 39 |
# File 'lib/chef/win32/security/ace.rb', line 30 def initialize(pointer, owner = nil) if Chef::ReservedNames::Win32::API::Security::ACE_WITH_MASK_AND_SID.supports?(pointer.read_uchar) @struct = Chef::ReservedNames::Win32::API::Security::ACE_WITH_MASK_AND_SID.new pointer else # TODO Support ALL the things @struct = Chef::ReservedNames::Win32::API::Security::ACE_HEADER.new pointer end # Keep a reference to the actual owner of this memory so we don't get freed @owner = owner end |