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)

336
337
338
339
340
341
342
343
# File 'lib/chef/win32/api/security.rb', line 336

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