Skip to content

Latest commit

 

History

History
80 lines (63 loc) · 1.97 KB

console-history-info.md

File metadata and controls

80 lines (63 loc) · 1.97 KB
title description author ms.author ms.topic keywords f1_keywords MS-HAID MSHAttr ms.assetid topic_type api_name api_location api_type
CONSOLE_HISTORY_INFO structure
See reference information about the CONSOLE_HISTORY_INFO structure, which contains information about the console history.
miniksa
miniksa
article
console, character mode applications, command line applications, terminal applications, console api
consoleapi3/CONSOLE_HISTORY_INFO
wincon/CONSOLE_HISTORY_INFO
CONSOLE_HISTORY_INFO
consoleapi3/PCONSOLE_HISTORY_INFO
wincon/PCONSOLE_HISTORY_INFO
PCONSOLE_HISTORY_INFO
base.console\_history\_info
consoles.console\_history\_info
PreferredSiteName:MSDN
PreferredLib:/library/windows/desktop
df7d2f12-5299-47ed-b1f6-2db903dba81b
apiref
CONSOLE_HISTORY_INFO
WinCon.h
HeaderDef

CONSOLE_HISTORY_INFO structure

[!INCLUDE not-recommended-banner]

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