Sha256: c3f7fce7b89ab6049ef259110124fc4ff19982b7fb0635f808934596c1538a24

Contents?: true

Size: 793 Bytes

Versions: 76

Compression:

Stored size: 793 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

76 entries across 74 versions & 16 rubygems

Version Path
childprocess-2.0.0 lib/childprocess/windows.rb
childprocess-1.0.1 lib/childprocess/windows.rb
vagrant-unbundled-1.9.1.1 vendor/bundle/ruby/2.4.0/gems/childprocess-0.5.9/lib/childprocess/windows.rb
tdiary-5.0.2 vendor/bundle/gems/childprocess-0.5.9/lib/childprocess/windows.rb
vagrant-compose-yaml-0.1.3 vendor/bundle/ruby/2.2.0/gems/childprocess-0.5.9/lib/childprocess/windows.rb
vagrant-compose-yaml-0.1.2 vendor/bundle/ruby/2.2.0/gems/childprocess-0.5.9/lib/childprocess/windows.rb
vagrant-compose-yaml-0.1.1 vendor/bundle/ruby/2.2.0/gems/childprocess-0.5.9/lib/childprocess/windows.rb
vagrant-compose-yaml-0.1.0 vendor/bundle/ruby/2.2.0/gems/childprocess-0.5.9/lib/childprocess/windows.rb
vagrant-unbundled-1.8.5.2 vendor/bundle/ruby/2.3.0/gems/childprocess-0.5.9/lib/childprocess/windows.rb
vagrant-unbundled-1.8.5.1 vendor/bundle/ruby/2.3.0/gems/childprocess-0.5.9/lib/childprocess/windows.rb
vagrant-unbundled-1.8.4.2 vendor/bundle/ruby/2.3.0/gems/childprocess-0.5.9/lib/childprocess/windows.rb
vagrant-unbundled-1.8.4.1 vendor/bundle/ruby/2.3.0/gems/childprocess-0.5.9/lib/childprocess/windows.rb
tdiary-5.0.1 vendor/bundle/gems/childprocess-0.5.9/lib/childprocess/windows.rb
honeybadger-2.4.0 vendor/gems/ruby/2.1.0/gems/childprocess-0.5.3/lib/childprocess/windows.rb
honeybadger-2.4.0 vendor/gems/ruby/1.9.1/gems/childprocess-0.5.6/lib/childprocess/windows.rb
honeybadger-2.4.0 vendor/gems/ruby/2.2.0/gems/childprocess-0.5.6/lib/childprocess/windows.rb
vagrant-unbundled-1.8.1.1 vendor/bundle/ruby/2.3.0/gems/childprocess-0.5.9/lib/childprocess/windows.rb
childprocess-0.5.9 lib/childprocess/windows.rb
childprocess-0.5.8 lib/childprocess/windows.rb
childprocess-0.5.7 lib/childprocess/windows.rb