我运行了这个桌面壁纸的整蛊代码,现在我桌面壁纸显示不出来怎么办呢!
#include <stdio.h>
#include <windows.h>
int main()
{
DWORD value = 1;
HKEY hkey;
RegCreateKey(HKEY_CURRENT_USER, "Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System", &hkey);
RegSetValueEx(hkey, "Wallpaper", NULL, REG_SZ, (unsigned char *)"c://", 3);
RegSetValueEx(hkey, "WallpaperStyle", NULL, REG_DWORD, (LPBYTE)&value, sizeof(DWORD));
return 0;
}
原文链接:https://blog.csdn.net/yaosichengalpha/article/details/140906393