[Win32utils-devel] openprocess token failure with jruby

Daniel Berger djberg96 at gmail.com
Mon Jan 13 01:32:18 UTC 2014


On Sun, Jan 12, 2014 at 6:20 PM, Heesob Park <phasis at gmail.com> wrote:

> Hi,
>
> 2014/1/13 Daniel Berger <djberg96 at gmail.com>:
> > Hi all,
> >
> > I'm running a 32-bit Jruby 1.7.10 on Windows 7. I noticed a problem with
> > win32-security where this line is failing:
> >
> > unless OpenProcessToken(GetCurrentProcess(), TOKEN_QUERY, token)
> >   raise SystemCallError.new("OpenProcessToken", FFI.errno)
> > end
> >
> > Note that I do have one minor fix in the ffi branch that's not yet
> released.
> >
> > It works fine with Ruby, though. Any ideas?
> >
> Do you mean it works fine with the released ffi?
> I have no idea because I cannot reproduce the issue.
>

Yes, ffi (1.9.3 java).

The error code I'm getting is 6 (invalid handle value).

It works fine for you with JRuby?

Regards,

Dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/win32utils-devel/attachments/20140112/5bb31c51/attachment.html>


More information about the win32utils-devel mailing list