Ruby 使用 Win32API 获取函数指针
- 作者: 答案36367808
- 来源: 51数据库
- 2022-08-12
require "Win32API"
def system(cmd)
sys = Win32API.new("crtdll", "system", ['P'], 'L')
sys.Call(cmd)
end
system("dir") # cmd /c not needed!
推荐阅读
