Class: Chef::ReservedNames::Win32::API::Security::ACE_WITH_MASK_AND_SID

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/chef/win32/api/security.rb

Class Method Summary collapse

Class Method Details

.supports?(ace_type) ⇒ Boolean

The AceTypes this structure supports

Returns:

  • (Boolean)


259
260
261
262
263
264
265
266
# File 'lib/chef/win32/api/security.rb', line 259

def self.supports?(ace_type)
  [
    ACCESS_ALLOWED_ACE_TYPE,
    ACCESS_DENIED_ACE_TYPE,
    SYSTEM_AUDIT_ACE_TYPE,
    SYSTEM_ALARM_ACE_TYPE
  ].include?(ace_type)
end