Reputation: 1
I want to find the wheather my machine(XP installed) is locked or unlocked today. Can anybody know how to achieve this in C#?
Thanks
Upvotes: 0
Views: 1538
Reputation: 12498
Use the SessionSwitchEventHandlerDelegate and log it every time they lock or unlock. Then you just consult your log.
Here's some sample code.
Upvotes: 2