Sha256: 4ba982c05a52573737239e88da4eaa2e9bd558da388d3e363095fde6a77a9006

Contents?: true

Size: 1.25 KB

Versions: 1

Compression:

Stored size: 1.25 KB

Contents

# The Win32 module serves as a namespace only.
module Win32
   
   # The Security class serves as a toplevel class namespace.
   class Security
      
      # The ACE class encapsulates an Access Control Entry, an element within
      # an Access Control List.
      class ACE
         # The version of the Win32::Security::ACE class.
         VERSION = '0.1.0'

         # The ACE type, e.g. ACCESS_ALLOWED, ACCESS_DENIED, etc.
         attr_accessor :ace_type

         # The ACE mask, e.g. INHERITED_ACE
         attr_accessor :ace_mask

         # Standard access rights, e.g. GENERIC_READ, GENERIC_WRITE, etc 
         attr_accessor :access_mask

         # Bit flags that indicate whether the ObjectType and
         # InheritedObjectType members are present. This value is set
         # internally based on the values passed to the ACE#object_type or
         # ACE#inherited_object_type methods, if any.
         attr_reader :flags

         # A Win32::Security::GUID object that identifies the type of child
         # object that can inherit the ACE. 
         attr_accessor :object_type

         attr_accessor :inherited_object_type

         def initialize
            yield self if block_given?
         end
      end
   end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
win32-security-0.1.2 lib/win32/security/ace.rb