I tried this but it does not work
LPWSTR test = L"C:\\Users\\Default\\wallpaper.png";
SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, test, SPIF_UPDATEINIFILE);
I tried this but it does not work
LPWSTR test = L"C:\\Users\\Default\\wallpaper.png";
SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, test, SPIF_UPDATEINIFILE);
The documentation says that the file must be a bitmap (or, possibly, a JPG).