用于验证Windows用户名和密码的C ++程序,不在任何域中,即在本地计算机中 [英] C++ program to validate windows username and password not in any domain i.e in local machine

查看:74
本文介绍了用于验证Windows用户名和密码的C ++程序,不在任何域中,即在本地计算机中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好

我需要使用c ++验证本地计算机中的Windows凭据。请提供一个简单的代码片段,用于此目的。

I need to validate windows credentials in my local machine using c++. Kindly provide a simple code snippet which serve the purpose.

问候

回答搜索者

推荐答案

搜索者,

感谢您在此发帖。

要验证Windows凭据,您还可以使用LogonUser方法。有关更多信息,请参阅

身份验证功能

For validating windows credentials ,you also can use LogonUser method. for more information, please see the Authentication Functions

以下是有关如何验证Windows凭据的演示。

Here is demo about how to validate windows credentials.

https://www.codeproject.com/Articles/21050 / Security-User-Impersonation

本文演示了一个简单的C ++类,它为用户模拟提供支持,允许应用程序模拟任何其他用户。

This article demonstrates a simple C++ class that provides support for User Impersonation, allowing an application to impersonate any other user .

如果您的问题已经解决,请记得关闭您的帖子,将有用的帖子标记为对同样问题的其他人有帮助的答案。

If your issue has been resolved, please remember to close your thread by marking useful posts as answer that can be helpful for other person with same issue.

最诚挚的问候,

Hart


这篇关于用于验证Windows用户名和密码的C ++程序,不在任何域中,即在本地计算机中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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