Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Storing screen saver settings
Message
De
03/01/2005 05:57:27
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00973728
Message ID:
00973770
Vues:
15
>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform