Ruby 使用 Win32API 获取函数指针

2015-08-05 0 259
Ruby 使用 Win32API 获取函数指针
require "Win32API"

def system(cmd)
  sys = Win32API.new("crtdll", "system", ['P'], 'L')
  sys.Call(cmd)
end

system("dir")  # cmd /c not needed!

遇见资源网 ruby Ruby 使用 Win32API 获取函数指针 http://www.ox520.com/16430.html

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务