Why is my programmatically created user missing from the Welcome screen?

余生长醉 提交于 2020-01-05 08:25:52

问题


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.

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?


回答1:


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

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



来源:https://stackoverflow.com/questions/93771/why-is-my-programmatically-created-user-missing-from-the-welcome-screen

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!