Hi!
I need to write a program that logs the same user into multiple WinXP
machines. I am envisioning a kind of "login server" running on the machines
as a service. A program (on some other PC on the net) accesses that service
which does somthing so that once the user gets to sit down at the PC, he
will find himself logged on and ready to go.
An example: I have ten computers, PC1 - PC10 and one head node, PC0. The
user signs onto the head node and starts something that will trigger
something on PC1-PC10. When he now walks over to PC1-PC10 and sits down, he
does not have to type his login and password, he is already logged on.
I am aware of the security implications.
What ways are there to do it?
I found a possibility to send keystrokes (keybd_event), I could send all the
keystrokes necessary for a login, but then how do I find out if someone is
already logged on? How do I make sure the right window is activated when
the events are being sent? Also, that is kinda dirty, I would prefer a
clean solution (but if there is none, I will go dirty).
Another thing I tried was the LoginUser function (I believe thats what it
was called), but its purpose seems to be to run processes with another
users ID. I was thinking, maybe I can run explorer with someone's ID and
noone will ever know, but couldn't quite figure that out. Would that work?
Any pointers?
Thank you,
Dirk