CONSOLE_SCREEN_BUFFER_INFO

typedef struct _CONSOLE_SCREEN_BUFFER_INFO { /* csbi */

COORD dwSize;

COORD dwCursorPosition;

WORD wAttributes;

SMALL_RECT srWindow;

COORD dwMaximumWindowSize;

} CONSOLE_SCREEN_BUFFER_INFO ;

The CONSOLE_SCREEN_BUFFER_INFO data structure contains information about a console screen buffer. It is used with the GetConsoleScreenBufferInfo function.

Members

dwSize

Specifies the size of the screen buffer in character columns and rows.

dwCursorPosition

Specifies the column and row coordinates of the cursor in the screen buffer.

wAttributes

Specifies the foreground and background color attributes to be used for characters that are written to the screen buffer by WriteFile or echoed by ReadFile. The attribute value will be some combination of the color constants, such as FOREGROUND_RED or BACKGROUND_BLUE, that are defined in wincon.h.

srWindow

Specifies a SMALL_RECT data structure that contains the screen buffer coordinates of the topleft and bottomright corners of the display window.

dwMaximumWindowSize

Specifies the maximum size of the console window given the current screen buffer size, the current font, and the display size.

See Also

GetConsoleScreenBufferInfo