2 messages in net.java.dev.jna.usersUnsure how to map function parameters
FromSent OnAttachments
Crump, MichaelJun 8, 2007 11:38 am 
Timothy WallJun 8, 2007 11:52 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:Unsure how to map function parametersActions...
From:Crump, Michael (mcr@leadscope.com)
Date:Jun 8, 2007 11:38:23 am
List:net.java.dev.jna.users

Hello,

JNA looks like a great product. I have a single method I need to call from a windows api so hopefully I will be able to use JNA to accomplish the task. I've looked at the documentation and the examples and am still unsure as to how to map this method:

NET_API_STATUS NetUserGetInfo( LPCWSTR servername, LPCWSTR username, DWORD level, LPBYTE* bufptr );

The two things I am most unsure of is mapping the return type and the LPBYTE* which will actually point to a variable sized structure containing the real result from the method.

Any help would be greatly apprecitated.

Regards,

Michael Crump