Sha256: 8b7962cffb5af56adb04fd4e8347057b1cdacfd408b07f3f637cf3b1ff726f74

Contents?: true

Size: 826 Bytes

Versions: 56

Compression:

Stored size: 826 Bytes

Contents

require "ffi"
require "rbconfig"

module ChildProcess
  module Windows
    module Lib
      extend FFI::Library

      def self.msvcrt_name
        host_part = RbConfig::CONFIG['host_os'].split("_")[1]
        manifest  = File.join(RbConfig::CONFIG['bindir'], 'ruby.exe.manifest')

        if host_part && host_part.to_i > 80 && File.exists?(manifest)
          "msvcr#{host_part}"
        else
          "msvcrt"
        end
      end

      ffi_lib "kernel32", msvcrt_name
      ffi_convention :stdcall


    end # Library
  end # Windows
end # ChildProcess

require "childprocess/windows/lib"
require "childprocess/windows/structs"
require "childprocess/windows/handle"
require "childprocess/windows/io"
require "childprocess/windows/process_builder"
require "childprocess/windows/process"

Version data entries

56 entries across 42 versions & 5 rubygems

Version Path
vagrant-unbundled-2.0.0.1 vendor/bundle/ruby/2.4.0/gems/childprocess-0.6.3/lib/childprocess/windows.rb
vagrant-unbundled-1.9.8.1 vendor/bundle/ruby/2.4.0/gems/childprocess-0.6.3/lib/childprocess/windows.rb
vagrant-unbundled-1.9.7.1 vendor/bundle/ruby/2.4.0/gems/childprocess-0.6.3/lib/childprocess/windows.rb
tdiary-5.0.5 vendor/bundle/gems/childprocess-0.7.1/lib/childprocess/windows.rb
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/childprocess-0.6.2/lib/childprocess/windows.rb
tdiary-5.0.5 vendor/bundle/gems/childprocess-0.7.0/lib/childprocess/windows.rb
tdiary-5.0.5 vendor/bundle/gems/childprocess-0.6.2/lib/childprocess/windows.rb
childprocess-0.7.1 lib/childprocess/windows.rb
vagrant-unbundled-1.9.5.1 vendor/bundle/ruby/2.4.0/gems/childprocess-0.6.3/lib/childprocess/windows.rb
childprocess-0.7.0 lib/childprocess/windows.rb
tdiary-5.0.4 vendor/bundle/gems/childprocess-0.6.2/lib/childprocess/windows.rb
childprocess-0.6.3 lib/childprocess/windows.rb
childprocess-0.6.3.beta.1 lib/childprocess/windows.rb
childprocess-0.6.2 lib/childprocess/windows.rb
childprocess-0.6.1 lib/childprocess/windows.rb
childprocess-0.6.0 lib/childprocess/windows.rb