Answers for "how to make console not close c++"

C++
0

Disabling console exit button c++

void Console_RemoveExitButton()
{
	HWND hwnd = GetConsoleWindow();
	HMENU hmenu = GetSystemMenu(hwnd, FALSE);
	EnableMenuItem(hmenu, SC_CLOSE, MF_GRAYED);
}
Posted by: Guest on October-16-2021

Code answers related to "how to make console not close c++"

Browse Popular Code Answers by Language