How can I switch users for the windows from my application??
I know that I'll use API functions.
but, which ? how ? I don't know.
please,I want it very important.
note:I'm using Visal Basic 6.0 in my application.
Printable View
How can I switch users for the windows from my application??
I know that I'll use API functions.
but, which ? how ? I don't know.
please,I want it very important.
note:I'm using Visal Basic 6.0 in my application.
Moved From The CodeBank
You dont.....switching Windows users requires one user to log off and another user to log on.
When a user logs off, all applications are closed so your program would be shut down.
Hmm, are you talking about Fast User Switching in XP?
the question in other words:
I logOn the windows using username (ex: user1 with his password)
he has some permisstion but not all .
then I want from my application to switch users (ex: to user2 with his password) who has more permisstions than the user1.
to do some thing and then return to the first user and complete what he was doing !!!!
I hope you understand me !!!
Yes, I do but there are multiple methods that you are talking about. ;)
Fast User Switching where you place your desktop in a hold and allow another to log on keeping all your programs running etc. Then the other is to use CreateProcessWithLogon API to start a process using different user credentials. You must know the user name and password and domain. Or you could prompt them for the logon credientials when ShellExecute the exe passing the "runas" verb.
yes, that's exactly what I want.
please,Do you have the code for doing it?
if YES then
post it her,please.
else if NO then
:confused:
:cry:
end if
Code for which as I gave multiple methods?
Fast User Switching