title | description | author | ms.author | ms.topic | keywords | f1_keywords | MS-HAID | MSHAttr | ms.assetid | topic_type | api_name | api_location | api_type | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
GetConsoleHistoryInfo function |
See reference information about the GetConsoleHistoryInfo function, which retrieves the history settings for the console of the calling process. |
miniksa |
miniksa |
article |
console, character mode applications, command line applications, terminal applications, console api |
|
|
|
145008b3-8a4a-4e6a-9144-ee787ce90ef4 |
|
|
|
|
[!INCLUDE not-recommended-banner]
Retrieves the history settings for the calling process's console.
BOOL WINAPI GetConsoleHistoryInfo(
_Out_ PCONSOLE_HISTORY_INFO lpConsoleHistoryInfo
);
lpConsoleHistoryInfo [out]
A pointer to a CONSOLE_HISTORY_INFO structure that receives the history settings for the calling process's console.
If the function succeeds the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
If the calling process is not a console process, the function fails and sets the last error to ERROR_ACCESS_DENIED.
[!INCLUDE no-vt-equiv-shell-banner]
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) |
Library | Kernel32.lib |
DLL | Kernel32.dll |