Board index » delphi » Is Screen Saver Active ???
Moose
![]() Delphi Developer |
Sun, 31 Aug 2003 16:27:21 GMT
Is Screen Saver Active ???
I am trying to find out if the screen saver is currently active (running) or
not on Windows 95, 98, NT, 2000 PCs, using Delphi 5. I have used the API calls, as recommended by : and have come up with this code : Function WIN_API_INC__Is_Screen_Saver_Active : Boolean; if SystemParametersInfo (SPI_GETSCREENSAVEACTIVE, 0, @SS_Running, 0) = If SS_Running = False then The problem is that this code does NOT work on Windows 98, and I would guess Does anyone have any ideas on what is needed / missing ? TIA Mike "Moose" O'Malley |