Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

Disabling console exit button c++

void Console_RemoveExitButton()
{
	HWND hwnd = GetConsoleWindow();
	HMENU hmenu = GetSystemMenu(hwnd, FALSE);
	EnableMenuItem(hmenu, SC_CLOSE, MF_GRAYED);
}
 
PREVIOUS NEXT
Tagged: #Disabling #console #exit #button
ADD COMMENT
Topic
Name
1+8 =