Question

To do this manual i just pick a html file in the change wallpaper dialog and tada works..

but if i want to do this from code what api calls / reg keys must i change?

Iv tryed this SystemParametersInfo (WinAPI) didnt work and i have found out that "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Desktop\General\Wallpaper" and "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes\LastTheme\Wallpaper" are changed to the html page.. but just editing those to from code does not change the wallpaper..

Was it helpful?

Solution

In order to use HTML as wallpaper, ActiveDesktop needs to be enabled first. Assuming that is already the case, then the IActiveDesktop interface has a SetWallpaper() method available. Have a look at MSDN's "Using the Active Desktop Object" article for how to access IActiveDesktop.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top