>What is the most common way of storing screen saver settings? I did a little searching on the internet for answers but I came up empty. I was thinking about throwing the settings values into an INI or XML file, but I guess I will run into a problem with multiple users on one machine (unless I put the settings file into the users folder). The thought has also struck me that the screen saver settings might be stored in the registry.
>
>If anyone knows the "best" practices for storing of screen saver settings please let me know, or if anyone wants to share their thoughts on this issue it would be appreciated.
>
>Thanks,
>Einar
Einar,
This is VFP code using winAPI to get parameters:
Declare short SystemParametersInfo In WIN32API ;
integer uiAction, Integer uiParam, Integer @pvParam, Integer fWinIni
#Define SPI_GETSCREENSAVETIMEOUT 14
#Define SPI_SETSCREENSAVETIMEOUT 15
#Define SPI_GETSCREENSAVEACTIVE 16
#Define SPI_SETSCREENSAVEACTIVE 17
#Define SPI_GETSCREENSAVERRUNNING 114
#Define SPI_SETSCREENSAVERRUNNING 97
Store 0 To bActive, bRunning, iTimeout
SystemParametersInfo(SPI_GETSCREENSAVETIMEOUT, 0,@iTimeout, 0)
SystemParametersInfo(SPI_GETSCREENSAVEACTIVE, 0,@bActive, 0)
SystemParametersInfo(SPI_GETSCREENSAVERRUNNING, 0,@bRunning, 0)
Cetin