How to Identify System Lock/Unlock in MFC
-
Hi, I have one application which needs to notified whenever the my windows system was locked or unlocked. so, can you plz give me the solution for this problem as soon as possible. Thanks & Regards swamy
-
Hi, I have one application which needs to notified whenever the my windows system was locked or unlocked. so, can you plz give me the solution for this problem as soon as possible. Thanks & Regards swamy
Hi, use "WTSRegisterSessionNotification()" to register your window to receive the notification "WM_WTSSESSION_CHANGE" which has "WTS_SESSION_LOCK" & "WTS_SESSION_UNLOCK" parameter to identify that. Best Regards Raj
-
Hi, use "WTSRegisterSessionNotification()" to register your window to receive the notification "WM_WTSSESSION_CHANGE" which has "WTS_SESSION_LOCK" & "WTS_SESSION_UNLOCK" parameter to identify that. Best Regards Raj
Thank U Very Much Raj.. for giving this solution !! cheers swamy..
-
Hi, I have one application which needs to notified whenever the my windows system was locked or unlocked. so, can you plz give me the solution for this problem as soon as possible. Thanks & Regards swamy
swamy Narasimha wrote:
I have one application which needs to notified whenever the my windows system was locked or unlocked.
Implement the
ISensLogon
interface. TheDisplayLock()
andDisplayUnLock()
methods are of interest to you.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne