搜索
查看: 605|回复: 1
打印 上一主题 下一主题

[原创] 自己做的一个小恶作剧

[复制链接]
跳转到指定楼层
楼主
发表于 2015-9-12 10:57:54 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
自己看看就知道了 Waring.zip (9.54 KB, 下载次数: 15) 代码
在此;
[mw_shl_code=c,true]#include <stdio.h>
#include <windows.h>
int main()
{
int x=GetSystemMetrics(SM_CXSCREEN)+300,y=GetSystemMetrics(SM_CYSCREEN)+300;
char setting[30];
    HWND hwnd=GetForegroundWindow();
    HWND handle=GetStdHandle(STD_OUTPUT_HANDLE);
    CONSOLE_CURSOR_INFO cursor_info={1,0};
    SetConsoleCursorInfo(GetStdHandle(STD_OUTPUT_HANDLE),&cursor_info);
    SetConsoleTextAttribute(handle,FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_RED);
sprintf(setting,"mode con:cols=%d lines=%d",x,y);
system(setting);
SetWindowPos(hwnd, HWND_TOPMOST,0,0,x+1000,y+1000,NULL);
MoveWindow(hwnd,-8,-25,x+300,y+300,1);
        system("color fc");
    printf("        Waring!    蓝屏恶作剧,谨防盗版,贴吧小u制作ひつゃのねなゃのぬなっもなゃ");
    Sleep(1000);
   
    system("cls");
    system("color fc");
    printf("      系统即将崩溃!");
    Sleep(1000);
   
    system("cls");
    system("color fc");
    printf("      即将蓝屏!");
    Sleep(1000);
   
    system("cls");
    system("color 9f");
    printf("Loading Dump File [C:\Windows\Minidump\090715-21187-01.dmp\n");
        printf("Mini Kernel Dump File: Only registers and stack trace are available\n");
        printf("Symbol search path is: cache*c:\mysymbol;srv*http://msdl.microsoft.com/download/symbols\n");
        printf("Executable search path is:\n") ;
        printf("Windows 7 Kernel Version 9600 MP (4 procs) Free x86\n");
        printf("Product: WinNt, suite: TerminalServer SingleUserTS Personal\n");
        printf("Built by: 9600.17238.amd64fre.winblue_gdr.140723-2018\n");
    printf("STOP:0X000001E\n");
   
    while(1==1)
    {
    Beep(500,100);
        Beep(0,100);
    Beep(900,100);
    Beep(1000,100);
    Beep(89,1000);
    Beep(567,100);
    Beep(58,100);
    Beep(591,100);
    Beep(58,600);
    Beep(89,56);
    Beep(95,38);
    Beep(1,100);
    Beep(50,500);
    Beep(903,1000);
    Beep(598,100);
        Beep(233,100);
    Beep(666,100);
    Beep(100,100);
    Beep(560,100);
    }
        system("pause");
        return 0;   //贴吧小u制作,谨防盗版!εθγχκτθκιησοθσηι
}
[/mw_shl_code]
推荐
 楼主| 发表于 2015-9-12 11:00:23 | 只看该作者
Win8用户代码(改了printf)
[mw_shl_code=c,true]#include <stdio.h>
#include <windows.h>
int main()
{
int x=GetSystemMetrics(SM_CXSCREEN)+300,y=GetSystemMetrics(SM_CYSCREEN)+300;
char setting[30];
    HWND hwnd=GetForegroundWindow();
    HWND handle=GetStdHandle(STD_OUTPUT_HANDLE);
    CONSOLE_CURSOR_INFO cursor_info={1,0};
    SetConsoleCursorInfo(GetStdHandle(STD_OUTPUT_HANDLE),&cursor_info);
    SetConsoleTextAttribute(handle,FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_RED);
sprintf(setting,"mode con:cols=%d lines=%d",x,y);
system(setting);
SetWindowPos(hwnd, HWND_TOPMOST,0,0,x+1000,y+1000,NULL);
MoveWindow(hwnd,-8,-25,x+300,y+300,1);
        system("color fc");
    printf("        Waring!    蓝屏恶作剧,谨防盗版,贴吧小u制作ひつゃのねなゃのぬなっもなゃ");
    Sleep(1000);
   
    system("cls");
    system("color fc");
    printf("      系统即将崩溃!");
    Sleep(1000);
   
    system("cls");
    system("color fc");
    printf("      即将蓝屏!");
    Sleep(1000);
   
    system("cls");
    system("color 9f");
    printf("Loading Dump File [C:\Windows\Minidump\090715-21187-01.dmp\n");
        printf("Mini Kernel Dump File: Only registers and stack trace are available\n");
        printf("Symbol search path is: cache*c:\mysymbol;srv*http://msdl.microsoft.com/download/symbols\n");
        printf("Executable search path is:\n") ;
        printf("Windows 8 Kernel Version 9600 MP (4 procs) Free x86\n");
        printf("Product: WinNt, suite: TerminalServer SingleUserTS Personal\n");
        printf("Built by: 9600.17238.amd64fre.winblue_gdr.140723-2018\n");
    printf("STOP:0X000001E\n");
   
    while(1==1)
    {
    Beep(500,100);
        Beep(0,100);
    Beep(900,100);
    Beep(1000,100);
    Beep(89,1000);
    Beep(567,100);
    Beep(58,100);
    Beep(591,100);
    Beep(58,600);
    Beep(89,56);
    Beep(95,38);
    Beep(1,100);
    Beep(50,500);
    Beep(903,1000);
    Beep(598,100);
        Beep(233,100);
    Beep(666,100);
    Beep(100,100);
    Beep(560,100);
    }
        system("pause");
        return 0;   //贴吧小u制作,谨防盗版!εθγχκτθκιησοθσηι
}
[/mw_shl_code]
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

广播台
特别关注
快速回复 返回顶部 返回列表