开发者

How to change walllpaper in c using winapi?

I tried thi开发者_运维问答s 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).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜