YODA0340 Posted January 21, 2006 Posted January 21, 2006 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. Quote
OMID SOFT Posted January 21, 2006 Posted January 21, 2006 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. Note: I didn't test them myself. http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=1257&lngWId=10 http://www.vb-helper.com/howto_net_detect_fast_user_switch.html Quote Don't ask what your country can do for you, ask what you can do for your country...
YODA0340 Posted January 21, 2006 Author Posted January 21, 2006 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. Quote
Leaders snarfblam Posted January 21, 2006 Leaders Posted January 21, 2006 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. Quote [sIGPIC]e[/sIGPIC]
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.