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
vagrant-cloudstack-1.2.0 vendor/bundle/gems/childprocess-0.5.6/lib/childprocess/windows.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/childprocess-0.5.6/lib/childprocess/windows.rb
childprocess-0.5.6 lib/childprocess/windows.rb
childprocess-0.5.5 lib/childprocess/windows.rb
childprocess-0.5.4 lib/childprocess/windows.rb
vagrant-tiktalik-0.0.3 vendor/bundle/ruby/2.0.0/gems/childprocess-0.5.3/lib/childprocess/windows.rb
childprocess-0.5.3 lib/childprocess/windows.rb
childprocess-0.5.2 lib/childprocess/windows.rb
childprocess-0.5.1 lib/childprocess/windows.rb
childprocess-0.5.0 lib/childprocess/windows.rb
childprocess-0.4.2 lib/childprocess/windows.rb
childprocess-0.4.1 lib/childprocess/windows.rb
childprocess-0.4.1.rc3 lib/childprocess/windows.rb
childprocess-0.4.1.rc2 lib/childprocess/windows.rb
childprocess-0.4.1.rc1 lib/childprocess/windows.rb
childprocess-0.4.0 lib/childprocess/windows.rb
tnargav-1.3.3 vendor/bundle/ruby/1.9.1/gems/childprocess-0.3.9/lib/childprocess/windows.rb
vagrant-shell-0.2.9 demo/templates/vendor/bundle/ruby/1.9.1/gems/childprocess-0.3.9/lib/childprocess/windows.rb
tnargav-1.2.3 vendor/bundle/ruby/1.9.1/gems/childprocess-0.3.9/lib/childprocess/windows.rb
vagrant-shell-0.2.8 demo/templates/vendor/bundle/ruby/1.9.1/gems/childprocess-0.3.9/lib/childprocess/windows.rb