07-31-2007, 07:53 PM
SystemParametersInfo SPI_SETDESKWALLPAPER 0 _s.expandpath("$commonpictures$\Sample Pictures\Forest.jpg") 3 ;;change
5
SystemParametersInfo SPI_SETDESKWALLPAPER 0 "" 3 ;;remove
5
SystemParametersInfo SPI_SETDESKWALLPAPER 0 SETWALLPAPER_DEFAULT 3 ;;should restore default, but does not work on my computer
SPI_SETDESKWALLPAPER is 20
SETWALLPAPER_DEFAULT is -1
If gives 'unknown identifier' error (it may be in older QM versons), change these SPI_... constants to these values.
Works on all OS. (Edit: must be bmp file on XP).
