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.2.7.0 vendor/bundle/ruby/2.4.0/gems/childprocess-0.6.3/lib/childprocess/windows.rb
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.7.0/gems/childprocess-0.6.3/lib/childprocess/windows.rb
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.6.0/gems/childprocess-0.6.3/lib/childprocess/windows.rb
vagrant-unbundled-2.2.6.2 vendor/bundle/ruby/2.6.0/gems/childprocess-0.6.3/lib/childprocess/windows.rb
vagrant-unbundled-2.2.6.1 vendor/bundle/ruby/2.6.0/gems/childprocess-0.6.3/lib/childprocess/windows.rb
vagrant-unbundled-2.2.6.0 vendor/bundle/ruby/2.6.0/gems/childprocess-0.6.3/lib/childprocess/windows.rb
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.6.0/gems/childprocess-0.6.3/lib/childprocess/windows.rb
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.5.0/gems/childprocess-0.6.3/lib/childprocess/windows.rb
tdiary-5.0.13 vendor/bundle/gems/childprocess-0.9.0/lib/childprocess/windows.rb
tdiary-5.0.12.1 vendor/bundle/gems/childprocess-0.9.0/lib/childprocess/windows.rb
vagrant-unbundled-2.2.4.0 vendor/bundle/ruby/2.5.0/gems/childprocess-0.6.3/lib/childprocess/windows.rb
vagrant-unbundled-2.2.4.0 vendor/bundle/ruby/2.6.0/gems/childprocess-0.6.3/lib/childprocess/windows.rb
childprocess-1.0.0 lib/childprocess/windows.rb
vagrant-unbundled-2.2.3.0 vendor/bundle/ruby/2.5.0/gems/childprocess-0.6.3/lib/childprocess/windows.rb
tdiary-5.0.11 vendor/bundle/gems/childprocess-0.9.0/lib/childprocess/windows.rb
vagrant-unbundled-2.2.2.0 vendor/bundle/ruby/2.5.0/gems/childprocess-0.6.3/lib/childprocess/windows.rb
vagrant-unbundled-2.2.0.0 vendor/bundle/ruby/2.5.0/gems/childprocess-0.6.3/lib/childprocess/windows.rb
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/childprocess-0.9.0/lib/childprocess/windows.rb
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/childprocess-0.9.0/lib/childprocess/windows.rb
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/childprocess-0.9.0/lib/childprocess/windows.rb