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)


303
304
305
306
307
308
309
310
# File 'lib/chef/win32/api/security.rb', line 303

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