I would like to change the aspect and the format fo the shell used to launch the following code:

Code:
#include <windows.h>
#include <stdio.h>

int main()
{
	HANDLE hCon = GetStdHandle(STD_OUTPUT_HANDLE);
	CONSOLE_SCREEN_BUFFER_INFO InfCon;
	GetConsoleScreenBufferInfo(hCon, &InfCon);
	if (!GetConsoleScreenBufferInfo(hCon, &InfCon))
	{
		printf("GetConsoleScreenBufferInfo failed %d\n", GetLastError());
		return 1;
	}
	printf("x: %d, y: %d\n", InfCon.dwSize.X, InfCon.dwSize.Y);
	InfCon.dwSize.X = 50;
	InfCon.dwSize.Y = 50;
	
	if (!SetConsoleScreenBufferSize(hCon, InfCon.dwSize))
	{
		printf("SetConsoleScreenBufferSize %d\n", GetLastError());
		return 1;
	}
	
	return 0;
}
but the console don't change and also get an error:

Code:
C:\Users\Quasar999\Documents\Source\WIN32\Win32_0016\ConsoleApplication1\x64\Release>ConsoleApplication1
x: 120, y: 9001
SetConsoleScreenBufferSize 87

C:\Users\Quasar999\Documents\Source\WIN32\Win32_0016\ConsoleApplication1\x64\Release>