GetLargestConsoleWindowSize

  COORD GetLargestConsoleWindowSize(hConsoleOutput)    
  HANDLE hConsoleOutput; /* console output handle */

The GetLargestConsoleWindowSize function returns the size of the largest possible console, given the current font.

Parameters

hConsoleOutput

Specifies a console output handle.

Return Value

If the function is successful, the return value is a COORD structure specifying the number of rows and columns in the largest possible console window.

If an error occurs, the return value is zero. Use the GetLastError function to obtain extended error information.