2009-03-31 21:09:28 UTC
Hi everyone!
I'm trying to use a DLL function wich needs a struct pointer as a param,
the function returns an integer value (0) if it's correctly executed or any other if not,
and uses de struct pointer to assign the related values.
I've been searching all over the web, but I haven't found anything.
Could any one give me a hand?
p.d.
I'm trying with:
NakedByteStream nbs = new NakedByteStream();
LittleEndianOutputStream leos = new LittleEndianOutputStream(nbs);
// here should be the struct
byte[] result = functionNeeded.invoke("????", #, nbs, null, ReturnFlags.CHECK_NONE);
LittleEndianInputStream leis = new LittleEndianInputStream(new ByteArrayInputStream(result));
// here, the code to get the values of the struct members after passing by the functionNeeded
Help!!!!