Click here to Skip to main content
15,886,919 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have an application that listens to system events using Microsoft.Win32.SystemEvents. But for some reason, after connecting to the machine with a Remote Desktop Connection and disconnecting it, the next time when I actually or locally unlock the computer I don't receive a SessionUnlock event.

Could someone help me understand why and what could I actually do for this. I have tried locking the machine first using
C#
"public static extern void LockWorkStation();"
, but that does not work.

Any solutions?? or any other events that can detect RemoteDisconnect or LogOn???
Posted
Updated 3-Nov-15 22:50pm
v4

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900