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

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?
LVL 1
HLRosenbergerAsked:
Who is Participating?
 
HLRosenbergerAuthor Commented:
I created a Windows Service using Visual Studiio
0
 
it_saigeDeveloperCommented:
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
 
HLRosenbergerAuthor Commented:
I created a Windows Service using Visual Studio.  This worked
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.