Link to home
Start Free TrialLog in
Avatar of SimonORorke
SimonORorke

asked on

Switch User in Windows XP

I would like to know how to use Windows XP's new Fast User Switching feature to switch user in VB code.
Avatar of RainUK
RainUK

Have you looked on MSDN? Although I have not had a look in MSDN lately I assume it is a set of Win32 APIs, probably similar to something like Win2Ks LogonUser, LoadUSerProfile, SwitchDesktop etc.
Avatar of SimonORorke

ASKER

I've scoured MSDN!  I did find what what looks like a way of doinng it with MFC, which is no good for VB.  I could not see how to do it with API, though that must be possible.
ASKER CERTIFIED SOLUTION
Avatar of jbil
jbil

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hello jbil

Q310153 has much interesting info about coding to support user switching in applications, but does not, as far as I can see, actually tell me how to switch users.  However, your "cheesy" VB solution will do nicely!  Thanks.

Simon