开发者

How to change walllpaper in c using winapi?

开发者 https://www.devze.com 2023-01-19 01:14 出处:网络
I tried thi开发者_运维问答s but it does not work LPWSTR test = L\"C:\\\\Users\\\\Default\\\\wallpaper.png\";

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

精彩评论

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