axtens
asked on
How to programmatically set html wallpaper?
I have successfully setup an HTML desktop wallpaper through the Display Properties, Desktop tab. What I want to know is how to do it programmatically.
I have been able to discover that images used for wallpaper are stored in subkeys of HKCU\Control Panel\Desktop. Similarly, HTML files details are stored in subkeys of HKCU\Software\Microsoft\In ternet Explorer\Desktop\General.
I can store data in the former, issue a desktop refresh (oShell.Run "%windir%\System32\RUNDLL3 2.EXE user32.dll,UpdatePerUserSy stemParame ters", 1, True), and have the image appear. However, if I store details in the latter location and do a desktop refresh, nothing happens.
Presumably, I'm missing a message that needs to be sent somewhere, and UpdatePerUserSystemParamet ers ain't it.
Any clues?
I have been able to discover that images used for wallpaper are stored in subkeys of HKCU\Control Panel\Desktop. Similarly, HTML files details are stored in subkeys of HKCU\Software\Microsoft\In
I can store data in the former, issue a desktop refresh (oShell.Run "%windir%\System32\RUNDLL3
Presumably, I'm missing a message that needs to be sent somewhere, and UpdatePerUserSystemParamet
Any clues?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
A good implementation of the solution can be found at .
Thanks, egl1044, you're worth your weight in assorted precious substances.
Thanks, egl1044, you're worth your weight in assorted precious substances.
ASKER