Solved

Need to programmatically Log Off Terminal Services Session

Posted on 2010-11-29
2
1,053 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
Comment Utility
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
Comment Utility
Thanks
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Utilizing an array to gracefully append to a list of EmailAddresses
This script checks a path to see if a folder exists. If the folder does exist you will get output "The folder has previously been created. No action taken" If not it will create the folder. Then adds one user modify permission to the folder. It …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now