鱼C论坛

 找回密码
 立即注册
查看: 1804|回复: 4

[作品展示] 蓝屏代码,无危险

[复制链接]
发表于 2023-1-4 15:58:37 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

x
  1. #include <iostream>
  2. #include <windows.h>

  3. using namespace std;

  4. void full_screen() {
  5.         HWND hwnd = GetForegroundWindow();
  6.         int cx = GetSystemMetrics(SM_CXSCREEN);
  7.         int cy = GetSystemMetrics(SM_CYSCREEN);

  8.         LONG l_WinStyle = GetWindowLong(hwnd,GWL_STYLE);   //获取窗口信息
  9.         SetWindowLong(hwnd,GWL_STYLE,
  10.                       (l_WinStyle | WS_POPUP | WS_MAXIMIZE) & ~WS_CAPTION & ~WS_THICKFRAME &
  11.                       ~WS_BORDER);
  12.         SetWindowPos(hwnd, HWND_TOP, 0, 0, cx, cy, 0);
  13. }
  14. void HideTheCursor() {
  15.         CONSOLE_CURSOR_INFO cciCursor;
  16.         HANDLE hStdOut = GetStdHandle(STD_OUTPUT_HANDLE);

  17.         if(GetConsoleCursorInfo(hStdOut, &cciCursor)) {
  18.                 cciCursor.bVisible = FALSE;
  19.                 SetConsoleCursorInfo(hStdOut, &cciCursor);
  20.         }
  21. }

  22. int main()
  23. {
  24.         system("mode 96,28");
  25.         HANDLE hStdin = GetStdHandle(STD_INPUT_HANDLE);
  26.         DWORD mode;
  27.         GetConsoleMode(hStdin, &mode);
  28.         mode &= ~ENABLE_QUICK_EDIT_MODE;
  29.         SetConsoleMode(hStdin, mode);
  30.         HideTheCursor();
  31.         CONSOLE_FONT_INFOEX cfi;
  32.         cfi.cbSize = sizeof cfi;
  33.         cfi.nFont = 0;
  34.         cfi.dwFontSize.X = 15;
  35.         cfi.dwFontSize.Y = 30;
  36.         cfi.FontFamily = FF_DONTCARE;
  37.         cfi.FontWeight = FW_NORMAL;
  38.         wcscpy(cfi.FaceName, L"MS Gothic");
  39.         SetCurrentConsoleFontEx(GetStdHandle(STD_OUTPUT_HANDLE), FALSE, &cfi);
  40.         system("color 1f");
  41.         RECT rect;
  42.         HWND hwnd=GetForegroundWindow();
  43.         GetWindowRect(hwnd,&rect);
  44.         MoveWindow(hwnd,-30,-7,8600,1080,TRUE);
  45.         full_screen();
  46.         cout<<"A problem has been detected and windows has been shut\
  47. down to prevent damage\n\
  48. to your computer.\n\n\
  49. DRIVER_IROL_NOT_LESS_OR_EQUAL\n\n\
  50. If this is the first time you've seen this Stop error screen, \n\
  51. restart your computer.If this screen appears again, follow \n\
  52. these steps:\n\n\
  53. Check to make sure any new hardware or software is properly installed.\n\
  54. If this is a new installation, ask your hardware or software manufacturer\n\
  55. for any windows updates you might need.\n\n\
  56. If problems continue. disable or remove any newly installed hardware\n\
  57. or software. Disable BIOS memory option such as caching or shadowing.\n\
  58. If you need to nsu Safe Mode to remove or disable components, restart\n\
  59. your computer, press F8 to select Advanced Startup Options, and then\n\
  60. select Safe Mode.\n\n\
  61. Technical information:\n\
  62. """STOP:0x00000050(xFD3094c2,0x00000001,0xFBFE7617,0x00000000)n\n\
  63. """SPCMDON.SYS - Address FBFE7617 base at FBFE5000, DateStamp 3d6dd67c"<<endl;
  64.         while(true)
  65.     {
  66.                 HideTheCursor();
  67.                 Sleep(1000);
  68.         }
  69.         return 0;
  70. }
复制代码
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2023-1-4 15:59:50 | 显示全部楼层
真是难得给力的帖子啊
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2023-1-6 16:00:00 | 显示全部楼层
你这蓝屏太假了(笑
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2023-1-9 15:19:01 | 显示全部楼层
这假吗
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2023-1-9 15:27:18 | 显示全部楼层
你这蓝屏太假了……

你再说,假吗??!!

【你的电脑遇到问题……】

看看这个:https://fishc.com.cn/thread-222539-1-1.html
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2024-6-6 11:58

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表