Ruby 使用 Win32API 获取函数指针 2015/08/05 15049 require "Win32API" def system(cmd) sys = Win32API.new("crtdll", "system", ['P'], 'L') sys.Call(cmd) end system("dir") # cmd /c not needed!