6 messages in net.java.dev.jna.usersRe: [jna-users] Structure mapping que...
FromSent OnAttachments
Steve NewellJul 30, 2008 11:05 am 
Michael Brewer-DavisJul 30, 2008 11:42 am 
Timothy WallJul 30, 2008 11:48 am 
Steve NewellJul 30, 2008 12:34 pm 
Timothy WallJul 30, 2008 2:48 pm 
Steve NewellJul 31, 2008 12:33 pm 
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] Structure mapping questionActions...
From:Timothy Wall (twal@dev.java.net)
Date:Jul 30, 2008 2:48:33 pm
List:net.java.dev.jna.users

On Jul 30, 2008, at 3:34 PM, Steve Newell wrote:

Perfect. Seems to work now. However, I have a new problem.

The method I am calling has the following signature in C:

int DllExport FindMatchingDeletedFiles( LPCWSTR szDirectory, PFileSignature fileSignatures, int numFileSignatures, PPDeletedFileHandle fileHandles );

PP = pointer to pointer to ...

So if your PointerByReference is pbr, pbr.getValue() gives you a PDeletedFileHandle(), which is probably the address of your structure. Note that it's getValue(), not getPointer().