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.
精彩评论