RE: Detecting locked screen

"Lewin, Gareth" <[email protected]> Wed, 22 Sep 2004 15:18:42 -0700
Newsgroups gmane.games.devel.windows
Message-ID <[email protected]>
What you want are winlogon notification events

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/secauth
n/security/winlogon_notification_packages.asp 


_________________________________________
Gareth Lewin - http://www.garethlewin.com

"Facts are useless. You can use facts to prove anything that's even
remotely true. Facts shmacts!" -- Homer Jay Simpson.
-----Original Message-----
From: Brian Hook [mailto:[email protected]] 
Sent: Wednesday, September 22, 2004 1:56 PM
To: [email protected]
Subject: RE: [GD-Windows] Detecting locked screen

> You can check if it has happened:

Thanks, that helps, but it doesn't quite solve it.  SwitchDesktop() will
still fail if the screen saver has turned on but the actual lock hasn't
occurred.

There is a very brief interval (under a couple seconds) when the screen
saver kicks in and it WON'T lock the desktop, and
SwitchDesktop() will fail then even if the desktop hasn't actually been
locked (i.e. you can tap a key or move the mouse and the screensaver
turns off and there's no logon box).

Basically I'm looking for a fictitious API that is like:

if ( WorkstationLocked() )
....

Failing that, being able to process a LockWorkstation() or whatever
would do the trick as well.

Thanks,

Brian




-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Gamedevlists-windows mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_idU5



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Gamedevlists-windows mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_idU5