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)

349
350
351
352
353
354
355
356
# File 'lib/chef/win32/api/security.rb', line 349

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