$OPTIMIZE ON
$APPTYPE GUI
$TYPECHECK ON
CONST SPI_SCREENSAVERRUNNING=97
CONST DISABLE=1
CONST ENABLE=0
DECLARE FUNCTION SystemParametersInfo LIB "user32.dll" _
ALIAS "SystemParametersInfoA" (action AS LONG, param1 AS LONG, param2 _
AS LONG, winIni AS LONG) AS LONG
DIM rtn AS LONG, rtnval AS LONG
rtnval=0
rtn=SystemParametersInfo(SPI_SCREENSAVERRUNNING, ENABLE, VARPTR (rtnval), 0)
IF rtn<>0 THEN
END IF
|