7 messages in net.java.dev.jna.usersRe: [jna-users] Trivial question.
FromSent OnAttachments
Jorge Nieto-MadridSep 9, 2008 3:47 am 
Timothy WallSep 9, 2008 6:24 am 
Jorge Nieto-MadridSep 11, 2008 4:08 am 
Timothy WallSep 11, 2008 6:02 am 
Jorge Nieto-MadridSep 11, 2008 8:43 am 
Timothy WallSep 11, 2008 9:07 am 
Jorge Nieto-MadridSep 15, 2008 5:10 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [jna-users] Trivial question.Actions...
From:Jorge Nieto-Madrid (jorg@gmail.com)
Date:Sep 15, 2008 5:10:10 am
List:net.java.dev.jna.users

Hi Timothy!

It worked! I am so happy. I used the INVALID_HANDLE_VALUE in this way (I hope this is right):

HANDLE hffff = new HANDLE(); hffff.setPointer(W32API.INVALID_HANDLE_VALUE.getPointer());

hShare = Kernel32.INSTANCE.CreateFileMappingW(hffff, NULL, Kernel32.PAGE_READWRITE, 0, getSizeofVirtualDevice(), cpName);

Because I can not create an instance of the INVALID_HANDLE_VALUE, I mean, the following:

hffff = W32API.INVALID_HANDLE_VALUE;

Doesn't work. Anyway the way I wrote my program was successfull in sharing data between C++ and Java.

I used the DEFAULT_OPTIONS from W32API for the invocation of Kernel32 so everything it worked.

I would like to make my implementation public because I was unable to find something similar in Internet. I think I can help others by doing so.

Once more, THANK YOU.