Sha256: d8a9fe4658fb134a5ea19b6093585bd51794d64735e2ce246c29224c465264e9

Contents?: true

Size: 336 Bytes

Versions: 24

Compression:

Stored size: 336 Bytes

Contents

# frozen_string_literal: true

require 'facter/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

24 entries across 24 versions & 1 rubygems

Version Path
facter-4.1.1 lib/facter/resolvers/windows/ffi/identity_ffi.rb
facter-4.1.0 lib/facter/resolvers/windows/ffi/identity_ffi.rb
facter-4.0.52 lib/facter/resolvers/windows/ffi/identity_ffi.rb
facter-4.0.51 lib/facter/resolvers/windows/ffi/identity_ffi.rb
facter-4.0.50 lib/facter/resolvers/windows/ffi/identity_ffi.rb
facter-4.0.49 lib/facter/resolvers/windows/ffi/identity_ffi.rb
facter-4.0.48 lib/facter/resolvers/windows/ffi/identity_ffi.rb
facter-4.0.47 lib/facter/resolvers/windows/ffi/identity_ffi.rb
facter-4.0.46 lib/facter/resolvers/windows/ffi/identity_ffi.rb
facter-4.0.44 lib/facter/resolvers/windows/ffi/identity_ffi.rb
facter-4.0.43 lib/facter/resolvers/windows/ffi/identity_ffi.rb
facter-4.0.42 lib/facter/resolvers/windows/ffi/identity_ffi.rb
facter-4.0.41 lib/facter/resolvers/windows/ffi/identity_ffi.rb
facter-4.0.40 lib/facter/resolvers/windows/ffi/identity_ffi.rb
facter-4.0.39 lib/facter/resolvers/windows/ffi/identity_ffi.rb
facter-4.0.38 lib/facter/resolvers/windows/ffi/identity_ffi.rb
facter-4.0.37 lib/facter/resolvers/windows/ffi/identity_ffi.rb
facter-4.0.36 lib/facter/resolvers/windows/ffi/identity_ffi.rb
facter-4.0.35 lib/facter/resolvers/windows/ffi/identity_ffi.rb
facter-4.0.34 lib/facter/resolvers/windows/ffi/identity_ffi.rb