How to tell when user locks computer (windows)?
Hello I’m wondering how to tell when the user locks the computer (windows xp, vista & 7). My intention is to create a small app that that logs the time the computer is locked and unlocked. So I need to know how to tell when the user locks the computer so it can log the time. Thank you!
Best regards
Richard
2 replies
You will have to use platform-specific code. Take a look at WTSRegisterSessionNotification [goo.gl] and WM_WTSSESSION_CHANGE [goo.gl].
You must log in to post a reply. Not a member yet? Register here!

