Using CredEnumerate to pull WebCredentials(使用 CredEnumerate 拉取 WebCredentials)
问题描述
作为密码管理工具的一部分,我尝试使用 CredEnumerate 枚举 IE 10 网站用户名(即自动完成用户名).当我调用 CredEnumerate 时,它会从凭据管理器"的Windows 凭据"部分生成多个用户名(通用用户名和域用户名),但不包括Web 凭据"部分中的任何内容凭据管理器(控制面板用户帐户和家庭安全凭据管理器).
As part of a password management tool, I am attempting to enumerate IE 10 web site usernames (i.e., auto-complete usernames) by using CredEnumerate. When I call CredEnumerate, it yields several usernames (generic usernames and domain usernames) from within the "Windows Credentials" section of the "Credential Manager", but does not include anything from the "Web Credentials" section of the Credential Manager (Control PanelUser Accounts and Family SafetyCredential Manager).
private static void Main()
{
int count;
IntPtr pCredentials;
bool ret = CredEnumerate(null, 1, out count, out pCredentials);
// ...
}
我如何才能访问网络凭据?
How can I get access to the Web Credentials?
推荐答案
最简单的解决方案是使用密码库 Windows.Security.Credentials.PasswordVault .当然,这个命名空间是特定于 Windows 8 的.
The simplest solution is to use the password vault, Windows.Security.Credentials.PasswordVault . Of course, this namespace is Windows 8 specific.
这篇关于使用 CredEnumerate 拉取 WebCredentials的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:使用 CredEnumerate 拉取 WebCredentials
基础教程推荐
- 在 VB6 或经典 ASP 中使用 .NET 2022-01-01
- 获取C#保存对话框的文件路径 2022-01-01
- Mono https webrequest 失败并显示“身份验证或解密失败" 2022-01-01
- 如果条件可以为空 2022-01-01
- 重新排序 WPF TabControl 中的选项卡 2022-01-01
- 从 C# 控制相机设备 2022-01-01
- C# 9 新特性——record的相关总结 2023-04-03
- SonarQube C# 分析失败“不是指针的有效行偏移" 2022-01-01
- 更新 Visual Studio 中的 DataSet 结构以匹配新的 SQL 数据库结构 2022-01-01
- 将数据集转换为列表 2022-01-01
