C# : About the Themes & wallpaper in windows, how to keep the slideshow.ini don't change? -


for reason, working resetting wallpaper using systemparametersinfo in c#. every time have done work, slideshow.ini in c:\users\currentuser\appdata\roaming\microsoft\windows\themes reset emptytoo. need same file before set new wallpaper desktop.

is there api or way can done job?

and there api can message user change themes->single wallpaper(new themes)?

i have tried wm_themeschange & wm_paint, non of them can reach needs.

just change wallpaper not reset slidershow.ini, act "theme", change photo after period of time , keep slideshow.ini. help!

add timer project , integrate in default wallpaper change code , use regular wallpaper change. setting readonly property true of ini file can protect changes.

        using system.io;          string inipath = environment.getfolderpath(environment.specialfolder.applicationdata) + @"\microsoft\windows\themes\slideshow.ini";         file.setattributes(inipath, file.getattributes(inipath) & fileattributes.readonly); 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -