使用C ++和Windows进行Windows编程的隐藏登录NetApi? [英] Hidden Login with Windows programming with C++ & NetApi?

查看:64
本文介绍了使用C ++和Windows进行Windows编程的隐藏登录NetApi?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用C ++函数"NetUserAdd" 或其他设置自动登录并不会出现在登录页面上的新用户,Windows是用户选择(所有),因为它管理程序并单独启动?

谁知道,请给我踢一下.

谢谢.
哈里·迪尔(Harry Diel):rolleyes:
mailto:[删除电子邮件以避免垃圾邮件]

How do I use the C++ Functions "NetUserAdd" or other, to set up a new user who is logged in automatically and will not appear on the login page, the user-selection of Windows (all), because it manages a program and starts alone?

Who''s know it, please give me a kick.

Thank you.
Harry Diel :rolleyes:
mailto: [Email removed to avoid SPAM]

推荐答案

这称为将应用程序编写为Windows服务,而不添加自动登录的用户.

Windows启动时,将启动所有服务,并在服务管理器中其属性中指定的帐户下启动所有服务.

如果将用户设置为自动登录,则在Windows启动时,该用户将像坐在键盘上一样登录.监视器将显示桌面,就像其他任何用户一样.
That''s called writing your application as a windows service, not adding a user that auto logs on.

When Windows starts, all services are started and are launched under the accounts specified in their properties in the Service Manager.

If you setup a user to autologon, when Windows starts, that user will logon as if they were sitting at the keyboard. The monitor will show a desktop, just like any other user.


我不确定您要问什么. Windows的用户选择是什么?在我看来,您正在尝试创建一个在任何地方都不可见的用户.那正确吗?如果是这样,您可以创建一个不在登录页面中显示的用户.可以通过设置注册表项来实现.但是该用户仍将在控制面板的用户小程序"中可见.

如果您尝试分配自动登录到某个用户的用户,则最好使用LOCAL或NETWORK用户(取决于您是否需要网络服务)
I am not sure what you asking. What is user-selection of Windows? It sounds to me you are trying to create a user that can not be visible any where. Is that right? If so, you can create a user that does not show in the login page. That can be achieved by setting a registry key. But the user will be still visible in the User Applet of the controls panel.

If you trying to assign user that automatically logs in to something, then you better off to use either LOCAL or NETWORK user ( depending if you need network services)


这篇关于使用C ++和Windows进行Windows编程的隐藏登录NetApi?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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