Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

I need assistance in writing .NET code to determine when a session change occurs.

Posted on 2014-12-10
3
Medium Priority
?
81 Views
Last Modified: 2014-12-20
http://msdn.microsoft.com/en-us/library/system.serviceprocess.sessionchangedescription.sessionid%28v=vs.110%29.aspx

I need to write a .NET console app detects session changes for Terminal Services. I need assistance in writing .NET code to determine when a session change occurs.   What Imports do I need?    How do I write code that can access SessionChangeDescription and trap session change events?
0
Comment
Question by:HLRosenberger
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 34

Expert Comment

by:it_saige
ID: 40491678
This is for services.  For a Windows Forms Application or Windows Console Application, you would need to use something like this.

Receiving Session Lock and Unlock Notifications

-saige-
0
 
LVL 1

Accepted Solution

by:
HLRosenberger earned 0 total points
ID: 40501479
I created a Windows Service using Visual Studiio
0
 
LVL 1

Author Closing Comment

by:HLRosenberger
ID: 40510612
I created a Windows Service using Visual Studio.  This worked
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Local Printing Using Remote Desktop Windows 7 sometimes has issues with printing to a local printer using a Remote Desktop Connection (RDC). The 1st step is to verify that printers are checked on the Local Resources tab of the Remote Desktop C…
How to install and configure Citrix XenApp 6.5 - Part 1. In this video tutorial we have explained step by step installation of Citrix XenApp 6.5 Server on Windows Server 2008 R2 is explained in this video. We have explained the difference between…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

688 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