为什么欢迎屏幕中缺少我以编程方式创建的用户? [英] Why is my programmatically created user missing from the Welcome screen?

查看:43
本文介绍了为什么欢迎屏幕中缺少我以编程方式创建的用户?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个程序可以使用 NetUserAdd() API 是微软建议.用户创建成功,我可以用那个用户登录了.

I have a program that creates a Windows user account using the NetUserAdd() API which is suggested by Microsoft. The user is created successfully, and I can log in as that user.

但是,在 Windows XP 上,新创建的用户不会出现在欢迎屏幕中.如果我禁用欢迎屏幕,我可以直接输入用户名作为新用户登录.

However, on Windows XP, the newly-created user is missing from the Welcome screen. If I disable the Welcome screen, I can log in as the new user by typing the user name in direcly.

我创建的帐户的哪些属性会导致它从欢迎屏幕中被忽略?

What property of the account I create causes it to be omitted from the Welcome screen?

推荐答案

您可以做的一件事是将用户名作为值添加到注册表项中:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList

One thing you could do is add the username as a value to the registry key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList

使用用户名(作为 REG_DWORD)和值 1 显示用户,使用 0 隐藏.

Use the username (As a REG_DWORD) and a value of 1 to show the user and 0 to hide.

这篇关于为什么欢迎屏幕中缺少我以编程方式创建的用户?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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