0

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..

Kyle Walsh
  • 2,774
  • 4
  • 27
  • 25
Peter
  • 37,042
  • 39
  • 142
  • 198

1 Answers1

1

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.

Remy Lebeau
  • 555,201
  • 31
  • 458
  • 770