This is a good question, and I left it unanswered for a while to find out if anyone knows something that I donβt have.
But, unfortunately, I think you will find that it is not possible to receive notifications corresponding to this event. The wallpaper slideshow does not actually change the system theme or any system settings, so the WM_SETTINGCHANGE message WM_SETTINGCHANGE not sent. It is designed to happen in the background and does not require notification of any application. If the user has chosen the "slide show" option, it is reasonable to assume that they expect the background to change at periodic intervals, no interaction or notification is required. In short, in at least 99% of cases, your application should not respond otherwise than as a result of changes in wallpaper associated with the slide show option.
The best I can think of is to determine the interval that they indicated at which to change the wallpaper, and then attach your application to the appropriate time when that time is up. In essence, you will have to create and respond to your own notifications.
A poll of the registry should be very discouraged. This is not only completely undocumented and therefore prone to hacking future versions of Windows (or even Windows updates!), But it is also not a reliable indicator. If there is any alternative (including a complete lack of functionality), then the path I would take.
source share