No programming required. Create a shortcut for your desktop program. Right-click it, Properties tab, Layout. Adjust the Width property of the screen buffer and window size.
But you can do it also programmatically, these Windows API functions that you found are also completed by the Console class. For instance:
static void Main(string[] args) { Console.BufferWidth = 100; Console.SetWindowSize(Console.BufferWidth, 25); Console.ReadLine(); }
source share