Sha256: e87c18ffe8733939f6a1afaadaf97d5b883ad4e64086b795f7a388dec5a5f6c1

Contents?: true

Size: 368 Bytes

Versions: 41

Compression:

Stored size: 368 Bytes

Contents

# frozen_string_literal: true

require 'facter/resolvers/windows/ffi/ffi'

module System32FFI
  extend FFI::Library

  ffi_convention :stdcall
  ffi_lib :kernel32
  attach_function :IsWow64Process, %i[handle pointer], :win32_bool

  ffi_convention :stdcall
  ffi_lib :kernel32
  attach_function :GetCurrentProcess, [], :handle

  CSIDL_WINDOWS = 0x0024
  H_OK = 0
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
facter-4.0.30 lib/facter/resolvers/windows/ffi/system32_ffi.rb