是否有Windows C ++ API来验证Windows用户名/域名是否是本地计算机上的有效帐户(没有密码)?
我正在尝试验证用户输入的用户名/域名是否是计算机上的有效用户,即如果给定计算机上该用户存在本地用户帐户。 (我不需要所有Active Directory用户。我只想让
的用户至少登录一次机器。"创建用户配置文件")
I am trying to validate whether given username/domain name entered by the user is a valid user on the machine, i.e. If a local user account exists for that user on the given machine. (I do not require all Active Directory users. I just want the users who have at least logged into the machine once. "User profile is created")
Windows"Logonuser" API帮助我验证用户名/域名和密码组合,但如果我无法访问密码,它不会告诉我用户名/域名是否有效。
Windows "Logonuser" API helps me in validating username/domain name and password combination, but it does not tell me if username/domain name is valid if I do not have access to the password.
嗨AtulBagga,
Hi AtulBagga,
据我所知,如果用户登录机器,则有当前用户的文件夹在文档文件夹下创建,如何检查是否存在这样的文件夹。
As I know if the user log on the machine, there is the folder of current user created under document folder, how about check if there is such folder exist.
我不确定是否有任何API可以告诉您该机器上确实存在多少用户。如何使用"网络用户"在命令中得到结果?
I'm not sure if there is any API that can tell you how many user exactly exist on this machine. How about use "Net User" in command and get the result?
- 詹姆斯