Solved

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

Posted on 2014-12-10
3
74 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 33

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

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VB.Net How to Exit Sub - Exit Form??? 5 51
Why is some text in blue in Visual Studio? 6 23
Allow User To Arrange Columns At Datagridview 3 19
Error in JQuery 5 39
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…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
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…

920 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

13 Experts available now in Live!

Get 1:1 Help Now