tags:

views:

33

answers:

2

I tried this but it does not work

LPWSTR test = L"C:\\Users\\Default\\wallpaper.png";
SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, test, SPIF_UPDATEINIFILE);
+2  A: 

The documentation says that the file must be a bitmap (or, possibly, a JPG).

Andreas Rejbrand
so, how to convert a .png to .bmp using winapi? =\
Ninja
@Ninja - that's a completely different question, start another one.
Hans Passant
A: 

btw, it still does not work even with bmp file.

Ninja