Click to See Complete Forum and Search --> : Is possible?
Chirieac
September 3rd, 2007, 02:25 PM
Hello!
I have two computers: "A" and "B".
"A" have two accounts and an user is currently logged on "A" (let's say he's painting).
I want to use "B" to "remote control" "A" and logon to the second account (the "painter" is using the first account).
The whole idea:
I want to make a program that create an account from another account and logon on it without exiting the current account.
If is possible, how can I do'it?
By!
UnderDog
September 5th, 2007, 08:39 AM
Win 2000 and Win 2003 server support the scenrio that you outlined about two different users logging into the same computer. The user from computer "B" just "terminal server" into "A".
The second part of doing it programmatically - theory is that you open up a new windows station. Also impersonating as another user does not really require closing the current session. You can login as one user, your program can run, and in the middle it can impersonate as being some other user. Off hand, I do not know the specific APIs to work with that; MSDN search should throw up good material.
Chirieac
September 5th, 2007, 01:20 PM
Thank for your reply. I'll do a search, but if you know something that can do this please tell me. MSDN is so huge that I don't konw where to begin serching. Some words... or something. Just to start...
UnderDog
September 5th, 2007, 01:41 PM
Look at this - http://msdn2.microsoft.com/en-us/library/ms687107.aspx for windows stations and desktops.
Start with this - http://msdn2.microsoft.com/en-us/library/aa378184.aspx for reading up on impersonation.
Chirieac
September 6th, 2007, 06:44 AM
Thank for your help! I'll see what can I find.
Bye!
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.