Is there a way to login to Windows programatically giving a user name and a password (using any language)? I need to log in as a user, then before displaying the desktop, I need to display a list of options from which the user can chose. Depeding on the selection, I need to find a new user name from a database and login to that user name while logging out of the previous user. Any suggestions?