//#include "stdafx.h"
#define _WIN32_WINNT 0x0500
#include <Windows.h>
#include <stdio.h>
#include <windows.h>
extern "C" WINBASEAPI HWND WINAPI GetConsoleWindow ();



void main()
{
DeleteMenu(GetSystemMenu(GetConsoleWindow(), FALSE), SC_CLOSE, MF_BYCOMMAND);
DrawMenuBar(GetConsoleWindow());
printf("Now you cannot close this window...\n");
system("pause");
}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-05
  • 2021-11-16
  • 2022-12-23
  • 2022-01-04
  • 2021-09-27
  • 2021-05-23
猜你喜欢
  • 2021-12-13
  • 2021-09-29
  • 2022-12-23
  • 2021-10-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案