coder_s
coder_s

Reputation: 1

How to find last window lock/unlock time in c#

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

Answers (1)

richard
richard

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

Related Questions