[GD-Windows] Detecting locked screen
Brought to you by:
vexxed72
From: Brian H. <ho...@bo...> - 2004-09-22 18:32:41
|
I'm trying to detect when the user has chosen to lock their workstation (via Task Manager or an app that calls LockWorkStation() directly), and I can't seem to find a simple way of doing this. I don't need to do anything, I just need to know if it's occurred or not. I was hoping there was some WM_LOCKWORKSTATION or something equivalent, but the nearest I can find is WM_ENDSESSION which isn't quite what I'm looking for. There is no WM_SYSCOMMAND type that is appropriate as well. Most stuff I see recommend installing a GINA DLL, but that may not be possible since the workstation user might have limited rights. If it's something as cheezy as doing a FindWindow for the Logon screen, that would work too, but I'm not sure what that window is called or if it's present all the time and just invisible unless locked, etc. Any pointers appreciated. Thanks, Brian |