Auto login a user in XP, after logoff
-
Hi there. I'm trying to write an aplication that will automaticaly initiate a user login, if the user is logged off for a given period of time. (right now it's in c#, but it may as well be in C++) I've tried using the ADVAPI32.DLL's function LogonUser, but apparently that is used for impresonation (am i wrong?). So, how is that done? In addition, i failed to find a way to check if a specific user is logged on or not. Any idea? If there is an easier way to do the auto-login, i will of course be glad to hear it. Thanks, SummerBulb
-
Hi there. I'm trying to write an aplication that will automaticaly initiate a user login, if the user is logged off for a given period of time. (right now it's in c#, but it may as well be in C++) I've tried using the ADVAPI32.DLL's function LogonUser, but apparently that is used for impresonation (am i wrong?). So, how is that done? In addition, i failed to find a way to check if a specific user is logged on or not. Any idea? If there is an easier way to do the auto-login, i will of course be glad to hear it. Thanks, SummerBulb
Windows uses a registry key to enable auto-login. Look at this article - How to turn on automatic logon in Windows XP[^]
«_Superman_» I love work. It gives me something to do between weekends.
-
Windows uses a registry key to enable auto-login. Look at this article - How to turn on automatic logon in Windows XP[^]
«_Superman_» I love work. It gives me something to do between weekends.
Been there. That configuration is only good for the first logon (when you turn on the computer). If a logged-on user logs off, it won't log him back on.
-
Been there. That configuration is only good for the first logon (when you turn on the computer). If a logged-on user logs off, it won't log him back on.
I take my words back and aplogise. It works perfectly. Thanks!