def consoleDimensionsWIN():
    u"""Returns count of (row, columns) from current console"""
    from ctypes import windll, create_string_buffer
    h = windll.kernel32.GetStdHandle(-12)
    csbi = create_string_buffer(22)
    res = windll.kernel32.GetConsoleScreenBufferInfo(h, csbi)
    columns, rows = 80, 25
    if res:
        import struct
        (_bufx, _bufy, _curx, _cury, _wattr, left, top, right, bottom,
            _maxx, _maxy) = struct.unpack('hhhhHhhhhhh', csbi.raw)
        columns = right - left + 1
        rows = bottom - top + 1
    return rows, columns
