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