def METHOD_NAME(stream_id=STDOUT):
    handle = _GetStdHandle(stream_id)
    csbi = CONSOLE_SCREEN_BUFFER_INFO()
    success = _GetConsoleScreenBufferInfo(
        handle, byref(csbi))
    return csbi