Sha256: c282769e6b4b8d88fa1aa2a23014e7d2cff5d98d76062de12dd17c47040b9c23

Contents?: true

Size: 345 Bytes

Versions: 22

Compression:

Stored size: 345 Bytes

Contents

# frozen_string_literal: true

require "#{ROOT_DIR}/lib/resolvers/windows/ffi/ffi"

module IdentityFFI
  extend FFI::Library

  ffi_convention :stdcall
  ffi_lib :secur32
  attach_function :GetUserNameExW, %i[uint32 lpwstr pointer], :win32_bool

  ffi_convention :stdcall
  ffi_lib :shell32
  attach_function :IsUserAnAdmin, [], :win32_bool
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
facter-4.0.29 lib/resolvers/windows/ffi/identity_ffi.rb
facter-4.0.28 lib/resolvers/windows/ffi/identity_ffi.rb
facter-4.0.26 lib/resolvers/windows/ffi/identity_ffi.rb
facter-4.0.25 lib/resolvers/windows/ffi/identity_ffi.rb
facter-4.0.24 lib/resolvers/windows/ffi/identity_ffi.rb
facter-4.0.23 lib/resolvers/windows/ffi/identity_ffi.rb
facter-4.0.22 lib/resolvers/windows/ffi/identity_ffi.rb
facter-4.0.21 lib/resolvers/windows/ffi/identity_ffi.rb
facter-4.0.20 lib/resolvers/windows/ffi/identity_ffi.rb
facter-4.0.19 lib/resolvers/windows/ffi/identity_ffi.rb
facter-4.0.18 lib/resolvers/windows/ffi/identity_ffi.rb
facter-4.0.17 lib/resolvers/windows/ffi/identity_ffi.rb
facter-4.0.16 lib/resolvers/windows/ffi/identity_ffi.rb
facter-4.0.15 lib/resolvers/windows/ffi/identity_ffi.rb
facter-4.0.14 lib/resolvers/windows/ffi/identity_ffi.rb
facter-4.0.13 lib/resolvers/windows/ffi/identity_ffi.rb
facter-4.0.12 lib/resolvers/windows/ffi/identity_ffi.rb
facter-4.0.11 lib/resolvers/windows/ffi/identity_ffi.rb
facter-4.0.10.pre lib/resolvers/windows/ffi/identity_ffi.rb
facter-4.0.9.pre lib/resolvers/windows/ffi/identity_ffi.rb