JRuby meets the Windows API

by Daniel Berger

With the addition of Java Native Access (JNA) to JRuby, systems programmers using JRuby now have greater flexibility in terms of interfacing with underlying operating system.

Some Ruby users are familiar with the 'Win32API' library that ships as part of the Ruby standard library. That library lets you interface with the Windows API by defining function pointers from specific DLL's that you later call. With JRuby's JNA interface you can now interface with Windows in a similar fashion.


Florian Gross
2008-01-27 14:45:43
Any chance of this getting packaged up with a ruby-dl compatible API? That would be huge. :)
Timothy Wall
2008-01-27 18:16:23
DWORD = (native) long = 32 bits = Java int => invokeInt
Daniel Berger
2008-01-27 18:37:23
Florian, I think Charles Oliver Nutter is working one it.

Timothy, updated, thanks.

Charles Oliver Nutter
2008-01-30 19:19:58
Florian: I have started on the earliest bits of dl.rb in JRuby and managed to invoke functions, but I haven't had a chance to get back to it. Using the code that's already there and the examples here and on the JNA site I don't expect it would be hard to get the rest working. I'd also like to see a port of Rubinius's FFI to JRuby, since the API almost exactly maps to JNA, and it would mean we could use Rubinius's FFI-based libraries unmodified.
2008-06-06 20:44:40
中国leather sofa协会, 中华leather sofa信息网, 国际leather sofa人, 中国媒体leather sofa刊例网. 中国leather sofa媒体网,为您推荐中国最好的LED公司,LED公司北京LED公司上海LED公司广州LED公司深圳LED公司南京LED公司杭州LED公司北京联基led公司是一家专业的北京led公司,组成的专业led公司。我led公司擅长急件南京地区出境LED bulbs,国内LED bulbs,南京LED bulbs产品开发,南京LED bulbs项目推广,南京LED bulbs景点图文展示,南京LED bulbs交通及南京LED bulbs典故介绍新浪LED bulbs由新浪网战略合作伙伴乐途LED bulbs网全面运营,提供LED bulbs线路查询、LED bulbs机票查询预订、LED bulbs酒店查询预订等全方位LED bulbs服务西安报纸led大屏报价,西安电视led大屏报价,华商报led大屏报价,西安楼宇电视led大屏楼梯6787673@WOWGOLDS.COM
buying wow account
2008-06-08 10:32:26
杭州buying wow account商,是全国知名buying wow account商,设有杭州buying wow account办,上海buying wow account办,北京buying wow account办、广州buying wow account办。
通联译buying wow account公司是一家专业的buying wow account公司,为您提供专业的buying wow account服务,公司拥有资深buying wow account专业化的buying wow account队伍易德天津buying wow account公司包括天津buying wow account、buying wow account天津、buying wow account公司天津、天津buying wow account社、天津buying wow account网、 天津buying wow account机构包括公益buying wow account、旅游buying wow account、商业buying wow account等等。然而buying wow account,buying wow account日常生活中所说的“buying wow account”往往特指商业buying wow account6787673@WOWGOLDS.COM
2008-06-09 15:56:54