[DUG] Detecting screensaver
Paul
paul.blommaerts at telenet.be
Wed Jun 10 01:35:04 NZST 2009
I'm using SystemParametersInfo(SPI_GETSCREENSAVEACTIVE, 0, @ATScreenSaverOn,
0);
It works on Vista here
Paul
----- Original Message -----
From: "John Bird" <johnkbird at paradise.net.nz>
To: "NZ Borland Developers Group - Delphi List" <delphi at delphi.org.nz>
Sent: Tuesday, June 09, 2009 7:30 AM
Subject: [DUG] Detecting screensaver
> Does anyone know a reliable way to detect if the screensaver is on? The
> way
> I have found references to on the web
>
> SystemParametersInfo(SPI_GETSCREENSAVERRUNNING, 0, @ATScreenSaverOn, 0);
>
> Note this is documented as Windows 95 only, which I am guessing why it
> doesn't work (XP/Vista)
>
> The only other way I can think of is to try to find the full name of the
> foreground program and see if it has a .SCR extension, but I am not
> confident that would work.
>
> John
>
> _______________________________________________
> NZ Borland Developers Group - Delphi mailing list
> Post: delphi at delphi.org.nz
> Admin: http://delphi.org.nz/mailman/listinfo/delphi
> Unsubscribe: send an email to delphi-request at delphi.org.nz with Subject:
> unsubscribe
>
>
More information about the Delphi
mailing list