In Windows Server 2008 R2, the Task Manager shows that users are either "Active" or "Disconnected", but applications launched by a user will continue to run when they are Disconnected.
Is there a way in .NET for an application to detect if the user that launched it is Disconnected?