开发者

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

开发者 https://www.devze.com 2023-02-13 14:56 出处:网络
I 开发者_运维技巧want to find the wheather my machine(XP installed) is locked or unlocked today. Can anybody know how to achieve this 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


Use the SessionSwitchEventHandlerDelegate and log it every time they lock or unlock. Then you just consult your log.

Here's some sample code.

0

精彩评论

暂无评论...
验证码 换一张
取 消