SetConsoleHistoryInfo function
Sets the history settings for the calling process's console.
Syntax
BOOL WINAPI SetConsoleHistoryInfo( _In_ PCONSOLE_HISTORY_INFO lpConsoleHistoryInfo );
Parameters
- lpConsoleHistoryInfo [in]
-
A pointer to a CONSOLE_HISTORY_INFO structure that contains the history settings for the process's console.
Return value
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.
Remarks
If the calling process is not a console process, the function fails and sets the last error code to ERROR_ACCESS_DENIED.
Requirements
|
Minimum supported client | Windows Vista [desktop apps only] |
|---|---|
|
Minimum supported server | Windows Server 2008 [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|
See also
Send comments about this topic to Microsoft
Build date: 10/27/2012