Module: IdentityFFI

Extended by:
FFI::Library
Defined in:
lib/facter/resolvers/windows/ffi/identity_ffi.rb

Class Method Summary collapse

Class Method Details

.privileged?Boolean

Returns:

  • (Boolean)


16
17
18
19
# File 'lib/facter/resolvers/windows/ffi/identity_ffi.rb', line 16

def self.privileged?
  result = self.IsUserAnAdmin()
  result && result != FFI::WIN32FALSE
end