Issue #5897 has been updated by Nobuyoshi Nakada.

Category set to ext
Status changed from Open to Feedback
Assignee set to Usaku NAKAMURA

=begin
????????障????????

  $ ruby -v -rWin32API -e "CreateProcess = Win32API.new('kernel32', 'CreateProcess', %w(ipiiiiiipp), 'i')" -e "lpCommandLine = ''" -e "p CreateProcess.call(0, lpCommandLine, 0, 0, 0, 0, 0, 0, '', 0)"
  ruby 1.9.3p0 (2011-11-08 revision 33661) [i386-mingw32]
  Warning:C:/Program Files (x86)/ruby/1.9.3/i386-mingw32/lib/ruby/1.9.1/rubygems/custom_require.rb:36: Win32API is deprecated after Ruby 1.9.1; use dl directly instead
  0

絎???????<????祉?若?吾????????障?乗下??c??????????????
=end

----------------------------------------
Bug #5897: Ruby??????WinAPI???CreateProcess???篏帥?c????????????違????????????????????違????с??
https://bugs.ruby-lang.org/issues/5897

Author: 茱粋??絲? ??????
Status: Feedback
Priority: Normal
Assignee: Usaku NAKAMURA
Category: ext
Target version: 
ruby -v: ruby 1.9.3p0 (2011-10-30) [i386-mingw32]


require 'Win32API'

CreateProcess = Win32API.new('kernel32', 'CreateProcess', %w(ipiiiiiipp), 'i')

NULL = 0
FALSE = 0
lpCommandLine = ""

CreateProcess.call(
    NULL,         
    lpCommandLine,  
    NULL,         
    NULL,         
    FALSE,        
    FALSE,
    NULL,         
    NULL,        
    "",
    0
    )

綣???違??????????????????????潟?с?????
????????c??????????[BUG]??????????????若?<????祉?若?吾????????????????????????????


-- 
http://bugs.ruby-lang.org/