C# - Programmatically Log-off and Log-on a user

Posted by Nullstr1ng on Stack Overflow See other posts from Stack Overflow or by Nullstr1ng
Published on 2010-03-12T07:28:43Z Indexed on 2010/03/12 7:37 UTC
Read the original article Hit count: 325

Filed under:
|

Hi,

I'd like to know if is there any way in C# to programatically log-in a Windows User Account?

We are currently developing an monitoring application and one of the feature is to be able to log-off the current Windows User and switch to another Windows User Account.

I have some few methods for Logging off, such as through API or Command Line. But what about logging-in a user account?

© Stack Overflow or respective owner

Related posts about user

Related posts about c#