I am having issues with establishing the largest console window supported on my system. I have written this code:

Code:
void vmApp::GetMaxConsoleAppSize()
{
    COORD maxConsoleSize;


    maxConsoleSize = GetLargestConsoleWindowSize(m_hStdOut);
    cout << "X = " << maxConsoleSize.X << " Y = " << maxConsoleSize.Y << endl;


    m_nMaxAppWidth = maxConsoleSize.X;
    m_nMaxAppHeight = maxConsoleSize.Y;
}
This reports X = 170 Y = 59 on my system. Issue here is that if I open a dos window (CMD), I am able to open the properties of that window and adjust the window size beyond what my method reports? How can I achieve this?