I'm using Windows 10 Home Edition and Delphi xe8. I made a program that paints on desktop wallpaper and behind the icons. I've tried many API functions to inform the slideshow app not to interfere with my program.
Whatever I do, it doesn't notify slideshow - except setting wallpaper. If I set the wallpaper, I can not reset it back to slideshow programmatically.
I basically want to suspend the slideshow while my program runs. After quitting the program, slideshow should be resumed. I thought that if I set the "Interval" period long enough, then change it back to normal (when quitting my program) it would be enough. I change registry settings (setting interval from 1 min. to 1 day, and vice versa) but slideshow doesn't know about it. I've tried :
SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, nil, SPIF_SENDWININICHANGE or SPIF_SENDCHANGE);
SHChangeNotify (SHCNE_ASSOCCHANGED, 0, nil, nil);
But none informs slideshow.