Hey that seems to work, thanks.

>From what I have found there is not a matching function to detect if one is
at the welcome/login screen, which often follows the screen saver....but
however - by good luck so far - it looks like I don't need to be able to
detect a locked screen.

(This was to detect out of date display for the Analogue Clock after the
screen saver comes off - now fixed, thanks to your feedback all.   It was
bugging me, pun intended).


John

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Conor Boyd
Sent: Friday, 3 August 2007 11:07 a.m.
To: NZ Borland Developers Group - Delphi List
Subject: RE: [DUG] Windows UI during Screensaver


function IsScreenSaverActive: Boolean;
begin
  SystemParametersInfo(SPI_GETSCREENSAVERRUNNING, 0, @Result, 0);
end;

_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: [email protected]
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe

Reply via email to