📅  最后修改于: 2022-03-11 14:56:02.042000             🧑  作者: Mango
#include
#include
int main() {
const wchar_t *path = L"C:\\image.png";
int result;
result = SystemParametersInfoW(SPI_SETDESKWALLPAPER, 0, (void *)path, SPIF_UPDATEINIFILE);
std::cout << result;
return 0;
}