Click here to Skip to main content
15,909,051 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
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]
Posted
Updated 23-Feb-11 3:36am
v2
Comments
Sandeep Mewara 23-Feb-11 9:37am    
Can I give a kick, without knowing? *Grin*

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.
 
Share this answer
 
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)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900