Austin English : kernel32: Add stubs for GetConsoleCommandHistoryLengthA/W.
Alexandre Julliard
julliard at winehq.org
Thu Jan 19 14:56:54 CST 2012
Module: wine
Branch: master
Commit: 2bc08d7f35228cd2dcbb552fdce2f941a4ac6e29
URL: http://source.winehq.org/git/wine.git/?a=commit;h=2bc08d7f35228cd2dcbb552fdce2f941a4ac6e29
Author: Austin English <austinenglish at gmail.com>
Date: Wed Jan 18 02:27:33 2012 -0600
kernel32: Add stubs for GetConsoleCommandHistoryLengthA/W.
---
dlls/kernel32/console.c | 20 ++++++++++++++++++--
dlls/kernel32/kernel32.spec | 4 ++--
2 files changed, 20 insertions(+), 4 deletions(-)
diff --git a/dlls/kernel32/console.c b/dlls/kernel32/console.c
index fdc4552..b50bce1 100644
--- a/dlls/kernel32/console.c
+++ b/dlls/kernel32/console.c
@@ -2934,8 +2934,6 @@ BOOL WINAPI SetConsoleDisplayMode(HANDLE hConsoleOutput, DWORD dwFlags,
/* some missing functions...
* FIXME: those are likely to be defined as undocumented function in kernel32 (or part of them)
* should get the right API and implement them
- * GetConsoleCommandHistory[AW] (dword dword dword)
- * GetConsoleCommandHistoryLength[AW]
* SetConsoleCommandHistoryMode
* SetConsoleNumberOfCommands[AW]
*/
@@ -3141,3 +3139,21 @@ BOOL CONSOLE_Exit(void)
/* the console is in raw mode, put it back in cooked mode */
return restore_console_mode(GetStdHandle(STD_INPUT_HANDLE));
}
+
+/* Undocumented, called by native doskey.exe */
+/* FIXME: Should use CONSOLE_GetHistory() above for full implementation */
+DWORD WINAPI GetConsoleCommandHistoryA(DWORD unknown1, DWORD unknown2, DWORD unknown3)
+{
+ FIXME(": (0x%x, 0x%x, 0x%x) stub!\n", unknown1, unknown2, unknown3);
+ SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ return 0;
+}
+
+/* Undocumented, called by native doskey.exe */
+/* FIXME: Should use CONSOLE_GetHistory() above for full implementation */
+DWORD WINAPI GetConsoleCommandHistoryW(DWORD unknown1, DWORD unknown2, DWORD unknown3)
+{
+ FIXME(": (0x%x, 0x%x, 0x%x) stub!\n", unknown1, unknown2, unknown3);
+ SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ return 0;
+}
diff --git a/dlls/kernel32/kernel32.spec b/dlls/kernel32/kernel32.spec
index f1ec4f3..9be4f00 100644
--- a/dlls/kernel32/kernel32.spec
+++ b/dlls/kernel32/kernel32.spec
@@ -465,10 +465,10 @@
@ stub GetConsoleAliasesW
@ stdcall GetConsoleCP()
@ stub GetConsoleCharType
-@ stub GetConsoleCommandHistoryA
+@ stdcall GetConsoleCommandHistoryA(long long long)
@ stub GetConsoleCommandHistoryLengthA
@ stub GetConsoleCommandHistoryLengthW
-@ stub GetConsoleCommandHistoryW
+@ stdcall GetConsoleCommandHistoryW(long long long)
@ stdcall GetConsoleCursorInfo(long ptr)
@ stub GetConsoleCursorMode
@ stdcall GetConsoleDisplayMode(ptr)
More information about the wine-cvs
mailing list