📅  最后修改于: 2022-03-11 14:44:56.344000             🧑  作者: Mango
void Console_RemoveExitButton()
{
HWND hwnd = GetConsoleWindow();
HMENU hmenu = GetSystemMenu(hwnd, FALSE);
EnableMenuItem(hmenu, SC_CLOSE, MF_GRAYED);
}