require 'Win32API' msgbox = Win32API.new('user32', 'MessageBox', ['i', 'p', 'p', 'i'], 'i') msgbox.call( 0, "Hello, Win32 API(Ruby) World!", "Hello, World!", 0 )