Skip to content

Instantly share code, notes, and snippets.

@practicingruby
Created May 29, 2009 14:39
Show Gist options
  • Select an option

  • Save practicingruby/119979 to your computer and use it in GitHub Desktop.

Select an option

Save practicingruby/119979 to your computer and use it in GitHub Desktop.
module API
extend FFI::Library
ffi_lib "C:/Windows/pcmsrv32.dll"
attach_function :PCMSOpenServer, [:int, :int], :short
attach_function :PCMSCloseServer, [:short], :int
attach_function :PCMSCalcDistance, [:short, :string, :string], :long
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment