Valhalla Legends Archive

Programming => General Programming => Visual Basic Programming => Topic started by: PaiD on July 28, 2005, 03:43 PM

Title: [VB] Switch Users
Post by: PaiD on July 28, 2005, 03:43 PM
How would go about Switching Users in XP? I know how to log off but I wanted to make it so the user would stay loaded. I have looking on MSDN and googled and cant find what I am looking for, just found out how to shutdown and/or log of the current user. Is there an API or some FLags I use in the ExitWindowsEX API or could I use Shell and do it? Please Help
Title: Re: [VB] Switch Users
Post by: Adron on July 28, 2005, 05:05 PM
Try LockWorkstation perhaps?
Title: Re: [VB] Switch Users
Post by: MyndFyre on July 28, 2005, 05:14 PM
Oooh, I think you're right.  When Fast User Switching is enabled, the welcome screen and FUS takes the place of locking the workstation.
Title: Re: [VB] Switch Users
Post by: PaiD on July 29, 2005, 10:36 AM
Hm. Thank You :) didnt think about that API.