在Java应用程序中使用PasswordVault [英] Using PasswordVault in Java app

查看:86
本文介绍了在Java应用程序中使用PasswordVault的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在Java应用程序中使用PasswordVault。该项目已经在使用JNA,因此这是一种自然的方式,但我无法弄清楚如何将PasswordVault添加到JNA路径。

I need to use PasswordVault in a Java application. The project is already using JNA, so that would be a natural way to do it, but I cannot figure out how to add PasswordVault to the JNA path.

提前致谢!

推荐答案

有关编写JNA的帮助,您需要在Java论坛上发帖。
有关从桌面应用程序调用WinRT API的帮助,请在桌面论坛中发帖(我会为您移动)。

For help with writing your JNA you'll need to post on a Java forum. For help with calling WinRT API from desktop apps in general please post in the desktop forums (I'll move this for you).

如果可以使用JNA中的C ++ / WinRT或C ++ / Cx然后调用WinRT API非常简单。如果您不能并且需要使用纯C ++,那么您需要自己管理COM包装器,这要复杂得多。有几个样本可以用
来演示从桌面应用程序调用WinRT API,你可以看一下它们的开始(大多数使用C#或C ++ / Cx)。一个例子是https://code.msdn.microsoft.com/windowsdesktop/sending-toast-notifications-71e230a2

If you can use C++/WinRT or C++/Cx in your JNA then calling WinRT API is pretty straightforward. If you can't and need to use pure C++ then you'll need to manage the COM wrappers yourself which is much more complicated. There are a few samples which demonstrate calling WinRT API from desktop apps which you can look at to get started (most use C# or C++/Cx). One example is at https://code.msdn.microsoft.com/windowsdesktop/sending-toast-notifications-71e230a2


这篇关于在Java应用程序中使用PasswordVault的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆