Add KERNEL32.SetThreadUILanguage() stub

Andreas Mohr andi at rhlx01.fht-esslingen.de
Fri Jul 29 13:25:05 CDT 2005


Hi,

On Fri, Jul 29, 2005 at 07:14:22PM +0200, Thomas Weidenmueller wrote:
> Andreas Mohr wrote:
> > Hello all,
> > 
> > this one is needed by XP's ping.exe and a reworked ReactOS version.
> > 
> > Andreas Mohr
> 
> This prototype is outdated. MS has documented this function in the
> meanwhile:
Thanks, very fast reaction!

This is now a semi-stub which should be able to satisfy requirements
much more than before.

Andreas Mohr
-------------- next part --------------
Index: dlls/kernel/kernel32.spec
===================================================================
RCS file: /home/wine/wine/dlls/kernel/kernel32.spec,v
retrieving revision 1.158
diff -u -r1.158 kernel32.spec
--- dlls/kernel/kernel32.spec	25 Jul 2005 11:08:31 -0000	1.158
+++ dlls/kernel/kernel32.spec	29 Jul 2005 18:18:33 -0000
@@ -959,6 +959,7 @@
 @ stdcall SetThreadLocale(long)
 @ stdcall SetThreadPriority(long long)
 @ stdcall SetThreadPriorityBoost(long long)
+@ stdcall SetThreadUILanguage(long)
 @ stdcall SetTimeZoneInformation(ptr)
 @ stub SetTimerQueueTimer
 @ stdcall SetUnhandledExceptionFilter(ptr)
Index: dlls/kernel/thread.c
===================================================================
RCS file: /home/wine/wine/dlls/kernel/thread.c,v
retrieving revision 1.27
diff -u -r1.27 thread.c
--- dlls/kernel/thread.c	27 Jun 2005 12:03:56 -0000	1.27
+++ dlls/kernel/thread.c	29 Jul 2005 18:18:33 -0000
@@ -514,6 +514,15 @@
 }
 
 /***********************************************************************
+ *              SetThreadUILanguage  (KERNEL32.@)
+ */
+LANGID WINAPI SetThreadUILanguage(WORD wReserved)
+{
+  FIXME("SetThreadUILanguage(0x%04x), semi-stub! (defaulting to english)\n", wReserved);
+	return MAKELANGID(LANG_ENGLISH, SUBLANG_DEFAULT);
+}
+
+/***********************************************************************
  *              QueueUserAPC  (KERNEL32.@)
  */
 DWORD WINAPI QueueUserAPC( PAPCFUNC func, HANDLE hthread, ULONG_PTR data )


More information about the wine-patches mailing list