CONSOLE_HISTORY_INFO structure

Contains information about the console history.

Syntax

typedef struct {
  UINT  cbSize;
  UINT  HistoryBufferSize;
  UINT  NumberOfHistoryBuffers;
  DWORD dwFlags;
} CONSOLE_HISTORY_INFO, *PCONSOLE_HISTORY_INFO;

Members

cbSize
The size of the structure, in bytes. Set this member to sizeof(CONSOLE_HISTORY_INFO).

HistoryBufferSize
The number of commands kept in each history buffer.

NumberOfHistoryBuffers
The number of history buffers kept for this console process.

dwFlags
This parameter can be zero or the following value.

Value Meaning
HISTORY_NO_DUP_FLAG 0x1

Duplicate entries will not be stored in the history buffer.

 

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

ConsoleApi3.h (via Wincon.h, include Windows.h)

See also

GetConsoleHistoryInfo

SetConsoleHistoryInfo