How does one detect when the wallpaper has changed (Windows XP or greater)?
desktop-wallpaper, wallpaper, windows, windows-7
Solution
Add a message handler for WM_SETTINGCHANGE, SystemEvents.UserPreferenceChanged in .NET. Check if the wallpaper is still the same.
Problem
I have figured out how to change the desktop wallpaper (there are dozens of examples on the Internet.) One thing that still eludes me: how do I detect when the wallpaper has changed? (Say via the Display control panel or another program changing it.)