--
You received this message because you are subscribed to the Google Groups "Java Native Access" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jna-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Java Native Access" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jna-users/PIfiqbvaRqg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jna-users+unsubscribe@googlegroups.com.
Hi Timothy,Thanks for your answer. Unfortunately I don't get it, sorry.I don't understand what kind of object I'm supposed to pass as a 2nd argument to the call to RasGetConnectStatus(HANDLE var1, com.sun.jna.Structure.ByReference var2) if I want to be able to manipulate the RASCONNSTATUS in order to retrieve the IP address of the remote host.Tank you for your help cause I'm stuck right now.
--
Hi Matthias,I've started by extending the WinRas interface in my code in order to add the ByReference to the RASCONNSTATUS static class. I'm able to pass it to the RasGetConnectStatus method.I can see that the RASCONNSTATUS has its rasconnstate property valued with 8192 which means that I successfully connected to the remote server.The problem now is that the remoteEndPoint doesn't have any IP address valued, it's all zeros, both v4 and v6.
I'd be glad to submit a pull request, but can I build only the Java part of JNA?Or do I have to also get into the "Windows" code, for which I'm really not competent...Don't even have a Visual Studio...