2 messages in net.java.dev.jna.usersRE: [jna-users] About Pointer to Arra...
FromSent OnAttachments
dani rodriguezJan 23, 2008 12:41 am 
dani rodriguezJan 23, 2008 3:09 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] About Pointer to Array of Structures.Actions...
From:dani rodriguez (soyn@hotmail.com)
Date:Jan 23, 2008 3:09:41 am
List:net.java.dev.jna.users

Solved by myself:

IntByReference resultCount=new IntByReference(); PointerByReference pointer=new PointerByReference(); rapiInstance.CeFindAllFiles(new WString("\\p*"), Values.FAF_NAME |
Values.FAF_CREATION_TIME, resultCount, pointer); data=new LPCE_FIND_DATA(); data.useMemory(pointer.getValue()); data.read(); Structure struct[]=data.toArray(resultCount.getValue());

anyway , thanks :)

From: soyn@hotmail.com To: use@jna.dev.java.net Date: Wed, 23 Jan 2008 09:41:32 +0100 Subject: [jna-users] About Pointer to Array of Structures.

Hello all, i´m new here, from Seville,Spain.

I am having a prob with the jna lib (I mean I dont know how its done)... We are trying to update some old crap jni "thing" to jna, our app connects to
activeSync dll (rapi.dll) to sync some files, i have coded almost all functions
in rapi.dll but there is one think i want to ask, i have the method:

STDAPI_(BOOL) CeFindAllFiles( LPCWSTR szPath, DWORD dwFlags, LPDWORD lpdwFoundCount, LPLPCE_FIND_DATA ppFindDataArray );

I have a CE_FIND_DATA Structure, working for the FindFirstFile function (almost
the same, but receiving an LPCE_FIND_DATA parameter). The call returns the item count, but i have tried almost all possibilities
(except the one that should work) to get the CE_FIND_DATA...

Anyone with an example easy enough for me to read and get my mind clear?

Thank you, and sorry about my english.

Daniel Rodriguez Millán

Express yourself instantly with MSN Messenger! MSN Messenger