2 messages in net.java.dev.jna.usersRe: [jna-users] Get the current IP/Su...
FromSent OnAttachments
Maxwell C. XandecoMay 13, 2008 6:10 am 
Timothy WallMay 13, 2008 6:16 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] Get the current IP/Submask/Gateway and shutdown windowsActions...
From:Timothy Wall (twal@dev.java.net)
Date:May 13, 2008 6:16:44 am
List:net.java.dev.jna.users

There's nothing already written as an example or contributed program, if that's what you're asking.

Whether the actual JNA mapping would be simple or as complex as parsing output depends on the actual system APIs that the shutdown and/ or netstat programs use.

In the case of shutdown, I can't see JNA being simpler, but obtaining the IP/submask/gateway via an API call would certainly be more accurate than matching console output.

On May 13, 2008, at 9:10 AM, Maxwell C. Xandeco wrote:

Hi im using the Runtine executor to shutdown (shutdown -s) and get the IP/Submask/Gateway on windows xp (netstat - parse the response with regex... Oo).

Exist a elegant way with api/jna to do this?