T
Tim Jowers
Has anyone seen or made an autologon program for Windows that can be
run from the scheduler or another program?
I've three several approaches and wonder if anyone can assert or deny
any. I am running these from a Service.
1. Send the username and password to the "SAS Window" - the name of
the logon window from EnumWindows. Sending ctrl-alt-del to get the
window works and sending to the one to lock the workstation work fine
but trying keybd_event, SendInput, and PostMessage do nothing with SAS
Window AFAICT. This seems to be the approach used by VNC so I wonder
what I am missing.
2. Tried used LogonUser, OpenWindowStation, SetProcessWindowStation,
etc. and CreateProcessAsUser on explorer.exe but this does not log the
user in. Works fine if a user is alreadylogged in though.
3. Read up on Gina DLL and downloaded an OS one from xpasystems but
did not see that their Geni replacement DLL would provide what I
needed. Do I really have to redo the Windows security to get this to
work? Do I need to make a stub or do I have to make a complete Gina
DLL?
Thanks for advice,
TimJowers
run from the scheduler or another program?
I've three several approaches and wonder if anyone can assert or deny
any. I am running these from a Service.
1. Send the username and password to the "SAS Window" - the name of
the logon window from EnumWindows. Sending ctrl-alt-del to get the
window works and sending to the one to lock the workstation work fine
but trying keybd_event, SendInput, and PostMessage do nothing with SAS
Window AFAICT. This seems to be the approach used by VNC so I wonder
what I am missing.
2. Tried used LogonUser, OpenWindowStation, SetProcessWindowStation,
etc. and CreateProcessAsUser on explorer.exe but this does not log the
user in. Works fine if a user is alreadylogged in though.
3. Read up on Gina DLL and downloaded an OS one from xpasystems but
did not see that their Geni replacement DLL would provide what I
needed. Do I really have to redo the Windows security to get this to
work? Do I need to make a stub or do I have to make a complete Gina
DLL?
Thanks for advice,
TimJowers