Skip to content

Instantly share code, notes, and snippets.

@axgle
Created October 26, 2009 13:17
Show Gist options
  • Save axgle/218632 to your computer and use it in GitHub Desktop.
Save axgle/218632 to your computer and use it in GitHub Desktop.
require 'ffi'
module A
extend FFI::Library
ffi_lib 'user32'
attach_function :msg,:MessageBoxA,[:pointer,:string,:string,:int],:int
end
A.msg(nil,"good",'ruby',0)
#http://www.matthulse.com/past/2009/9/15/testing/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment