Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/security/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C 什么';在Windows中登录最有效的方法是什么?_C_Security_Winapi_Authentication_Windows 7 - Fatal编程技术网

C 什么';在Windows中登录最有效的方法是什么?

C 什么';在Windows中登录最有效的方法是什么?,c,security,winapi,authentication,windows-7,C,Security,Winapi,Authentication,Windows 7,我一直在寻找在Windows中验证用户凭据的最有效方法。我使用的操作系统版本是Windows7。我已经研究了LogonUser(),但我只想验证本地用户,而不需要花费网络登录的费用。我已经看过一些secur32.dll函数,但我不确定需要使用哪些函数来验证该API中的明文用户名和密码。什么方法允许我实现本地登录?此程序在哪里运行?你不需要先登录才能做其他事情吗?你能提供一些关于你的用例的上下文吗?程序在你登录后运行,我需要它作为用户模拟中的令牌。

我一直在寻找在Windows中验证用户凭据的最有效方法。我使用的操作系统版本是Windows7。我已经研究了
LogonUser()
,但我只想验证本地用户,而不需要花费网络登录的费用。我已经看过一些secur32.dll函数,但我不确定需要使用哪些函数来验证该API中的明文用户名和密码。什么方法允许我实现本地登录?

此程序在哪里运行?你不需要先登录才能做其他事情吗?你能提供一些关于你的用例的上下文吗?程序在你登录后运行,我需要它作为用户模拟中的令牌。