I found it!
{
SystemParametersInfo(
SPI_GETSCREENSAVEACTIVE, // system parameter to query or
set
0, // depends on action to be taken
@ScreenFlag, // depends on action to
be taken
0 // user profile update
flag
);
if ScreenFlag then
// Screen saver active.. Do something.
else
// Screen saver inactive.. Do something else.
}
There's also the SPI_SETSCREENSAVEACTIVE parameter. If anyone is
interested I'll post the complete sequence for testing and
enable/disable once I get it working.
John
>
> Hi,
>
> Is it possible to enable/disable the windows screen saver
> from inside a
> Delphi application?
>
> Thanks
>
> John
>
> _______________________________________________
> Delphi mailing list -> [email protected]
> http://www.elists.org/mailman/listinfo/delphi
>
>
_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi