Add stub function HWND GetConsoleWindow()
Ylia K
k_ilya at ukr.net
Mon Apr 26 07:52:43 CDT 2004
* dlls/kernel/kernel32.spec, dlls/kernel/console.c, include/wincon.h
Ilya Korniyko <k_ilya at ukr.net>
Add stub function HWND GetConsoleWindow()
It is for excelent file manager FAR Manager (www.rarlab.com).
FAR Manager doesn't run without this patch.
With patch it runs - good on winXP, very bad on winME.
--- ../wine/dlls/kernel/console.c 2004-01-27 22:11:53.000000000 +0200
+++ dlls/kernel/console.c 2004-04-24 14:39:54.720427784 +0300
@@ -2409,3 +2409,18 @@
SERVER_END_REQ;
return ret;
}
+/************************************************************
+ * GetConsoleWindow (KERNEL32.@)
+ *
+ * returns the window handle of the console associated with the calling process.
+ */
+
+HWND GetConsoleWindow (void)
+{
+ FIXME(": stub\n");
+
+ SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ return NULL;
+
+}
+
--- ../wine/dlls/kernel/kernel32.spec 2004-03-03 04:17:58.000000000 +0200
+++ dlls/kernel/kernel32.spec 2004-04-24 13:03:30.000000000 +0300
@@ -370,7 +370,7 @@
@ stdcall GetConsoleScreenBufferInfo(long ptr)
@ stdcall GetConsoleTitleA(ptr long)
@ stdcall GetConsoleTitleW(ptr long)
-@ stub GetConsoleWindow
+@ stdcall GetConsoleWindow()
@ stdcall GetCurrencyFormatA(long long str ptr str long)
@ stdcall GetCurrencyFormatW(long long str ptr str long)
@ stdcall GetCurrentDirectoryA(long ptr)
--- ../wine/include/wincon.h 2003-01-09 08:01:32.000000000 +0200
+++ include/wincon.h 2004-04-24 12:31:34.000000000 +0300
@@ -212,6 +212,7 @@
DWORD WINAPI GetConsoleTitleA(LPSTR title,DWORD size);
DWORD WINAPI GetConsoleTitleW(LPWSTR title, DWORD size);
#define GetConsoleTitle WINELIB_NAME_AW(GetConsoleTitle)
+HWND GetConsoleWindow (void);
BOOL WINAPI GetNumberOfConsoleInputEvents( HANDLE hcon,LPDWORD nrofevents);
BOOL WINAPI GetNumberOfConsoleMouseButtons(LPDWORD nrofbuttons);
BOOL WINAPI PeekConsoleInputA( HANDLE handle, LPINPUT_RECORD buffer, DWORD count, LPDWORD read );
More information about the wine-patches
mailing list