Answers for "Disabling console exit button 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

Browse Popular Code Answers by Language