Fast user switching

YODA0340

Newcomer
Joined
Sep 13, 2005
Messages
11
I was wondering how to make a program automatically do a fast user switch. What i want is something that will go off and switch user after a certain time.
 
Thanks, the first one worked really well,

You basically put:
Private Declare Function LockWorkStation Lib "user32.dll" () As Long
At the top of your code

And:
LockWorkStation()
In your code where you want the fast user switch to occur.
 
It is worth mentioning that if the user has the welcome screen disabled or they are running windows NT/2000+ (anything NT except XP) LockWorkStation will do just that: lock the work station.
 
Back
Top