我刚刚发现 Win8 的控制面板上有一个名为用户帐户和家庭安全的部分,其中包含凭据管理器。我想访问存储在其中的凭据(不是检索密码,而是将它们用作登录 token )。所以,基本上,我想搭上已经安装的软件。
最接近解决方案的建议已在 this discussion 中提出而且还不是接近。
在哪里可以找到 Windows.Security.Credentials.PasswordVault 的程序集?我已经在谷歌上搜索了两个小时,但我只获得了有关应用程序的信息开发,而我将以桌面为目标。
有没有办法解决对 Win7 和 Win8 的预存凭据的访问?我有点担心 Win8 中的保险库设施已被彻底改造,使其成为不可能同时针对两个平台。
最佳答案
How to: Add or Remove References By Using the Reference Manager说:
In the desktop projects the Core tab doesn’t appear by default. You can add the Windows Runtime by opening the shortcut menu for the project node, choosing Unload Project, adding the following snippet, and re-opening the project (on the project node choose Reload Project). When you invoke the Reference Manager dialog box, the Core tab appears.
<PropertyGroup> <TargetPlatformVersion>8.0</TargetPlatformVersion> </PropertyGroup>
Make sure to check the Windows box on this tab. You should then be able to use WinRT elements.
关于c# - 如何在 Win7 和 Win8 上访问存储的凭据(PasswordVault?)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14813370/