Solved

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

Posted on 2014-12-10
3
73 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
  • 2
3 Comments
 
LVL 32

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

757 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

19 Experts available now in Live!

Get 1:1 Help Now