Link to home
Start Free TrialLog in
Avatar of HLRosenberger
HLRosenbergerFlag for United States of America

asked on

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?
Avatar of it_saige
it_saige
Flag of United States of America image

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-
ASKER CERTIFIED SOLUTION
Avatar of HLRosenberger
HLRosenberger
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of HLRosenberger

ASKER

I created a Windows Service using Visual Studio.  This worked