This code works alright. In the heat of the discussion I missed it, for which I humbly apologize. I am unable to refer this contribution to the person who made it, but do so implicitly, with many thanks attached.Code:void disableMinimizeAndMaximizeButtons(void)
{
HWND hwnd;
LONG_PTR ws;
hwnd = GetConsoleWindow();
SetWindowLong(hwnd, GWL_STYLE,
GetWindowLong(hwnd, GWL_STYLE) & ~(WS_MAXIMIZEBOX|WS_MINIMIZEBOX));
}