如何使用Java的WinInet API? [英] How to use the WinInet API from Java?
问题描述
根据此 WinInet Windows API是在Windows中读取和写入Internet连接设置的正确方法.如何从Java使用此API?我希望有一个免费的开源解决方案.
According to this answer to an earlier question of mine, the WinInet Windows API is the correct way to read and write internet connection settings in Windows. How can I use this API from Java? I'd prefer a free, open-source solution.
推荐答案
在过去的几个月中,我不得不与Java项目混合使用一些C,C ++和Win32替代方案来进行本机访问.在与JNA以及最近与JInvoke进行了大量集成之后,我可以告诉您JInvoke比JNA稍微成熟.甚至JInvoke比JNA都老,我发现它的语法更加简洁明了.对那些热爱JNA但使用JInvoke的人来说,很抱歉,我可以从Java上钩住Windows api.
Over the last months I had to mix with my Java project some C, C++ and Win32 alternatives for native access. After a lot work with JNA and recently with JInvoke for such integration, I can tell you that JInvoke is a little mature than JNA. Even JInvoke be older than JNA, I found its syntax more concise and simple. Sorry for those who loves JNA but using JInvoke I could literally hook the windows api from Java.
这篇关于如何使用Java的WinInet API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!