最終更新:2012-01-12 (木) 05:35:39 (4488d)  

Ruby/Win32API
Top / Ruby / Win32API

http://www.ruby-lang.org/ja/old-man/html/Win32API.html

Win32API.new(dllname, proc, import, export)
require 'Win32API'
a = Win32API.new('user32', 'MessageBox', %w(p p p i), 'i')
a.call(0, "test message", "test caption", 4)

型の指定は以下の文字列または配列です。

  • "p" ポインタ
  • "n", "l" long *1
  • "i" int
  • "v" void