[Win32utils-devel] CreateFile, FFI and 32 vs 64 bit Ruby

Heesob Park phasis at gmail.com
Mon Nov 4 03:53:24 UTC 2013


2013/11/4 Daniel Berger <djberg96 at gmail.com>:
> Ah, just realized that won't work on JRuby, which returns -1. Looks like
> I'll have to check FFI::Platform::ADDRESS_SIZE.
> Unless INVALID_HANDLE_VALUE actually is -1 when using JRuby. Is there an
> easy way to test?
I think jruby is wrong in case of FFI::Pointer.new(-1).address

Anyway, the following is possible


Park Heesob

More information about the win32utils-devel mailing list