Solved

Need to programmatically Log Off Terminal Services Session

Posted on 2010-11-29
2
1,064 Views
Last Modified: 2012-08-13
I have a Windows Application that is available to clients via Terminal Services. Need to know how to programmatically log the session off in C# or VB.NET on the user hitting the X in the upper right hand corner. Any help provided would be greatly appreciated
0
Comment
Question by:jazzcatone
2 Comments
 
LVL 3

Accepted Solution

by:
abdkhlaif earned 500 total points
ID: 34232923
you can close the Terminal Services session by logging off windows
take a look at this sample:
http://www.c-sharpcorner.com/UploadFile/thiagu304/desktopfunctions02112007140806PM/desktopfunctions.aspx
0
 

Author Closing Comment

by:jazzcatone
ID: 34234970
Thanks
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question