Austin English : kernel32: Add a stub for SetThreadPreferredUILanguages.

Alexandre Julliard julliard at winehq.org
Mon Apr 25 12:47:13 CDT 2011


Module: wine
Branch: master
Commit: cad8afb8eebdb354e34be392b375dc8453f2f1b4
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=cad8afb8eebdb354e34be392b375dc8453f2f1b4

Author: Austin English <austinenglish at gmail.com>
Date:   Sat Apr 23 17:40:56 2011 -0500

kernel32: Add a stub for SetThreadPreferredUILanguages.

---

 dlls/kernel32/kernel32.spec |    1 +
 dlls/kernel32/thread.c      |    9 +++++++++
 include/winnt.h             |    2 ++
 3 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/dlls/kernel32/kernel32.spec b/dlls/kernel32/kernel32.spec
index 21e8210..946bce0 100644
--- a/dlls/kernel32/kernel32.spec
+++ b/dlls/kernel32/kernel32.spec
@@ -1079,6 +1079,7 @@
 @ stdcall SetThreadExecutionState(long)
 @ stdcall SetThreadIdealProcessor(long long)
 @ stdcall SetThreadLocale(long)
+@ stdcall SetThreadPreferredUILanguages(long ptr ptr)
 @ stdcall SetThreadPriority(long long)
 @ stdcall SetThreadPriorityBoost(long long)
 @ stdcall SetThreadUILanguage(long)
diff --git a/dlls/kernel32/thread.c b/dlls/kernel32/thread.c
index bddf37d..f061169 100644
--- a/dlls/kernel32/thread.c
+++ b/dlls/kernel32/thread.c
@@ -806,3 +806,12 @@ BOOL WINAPI GetThreadIOPendingFlag( HANDLE thread, PBOOL io_pending )
     *io_pending = FALSE;
     return TRUE;
 }
+
+/***********************************************************************
+ *              SetThreadPreferredUILanguages (KERNEL32.@)
+ */
+BOOL WINAPI SetThreadPreferredUILanguages( DWORD flags, PCZZWSTR buffer, PULONG count )
+{
+    FIXME( "%u, %p, %p\n", flags, buffer, count );
+    return TRUE;
+}
diff --git a/include/winnt.h b/include/winnt.h
index d3df022..62d5f80 100644
--- a/include/winnt.h
+++ b/include/winnt.h
@@ -422,6 +422,8 @@ typedef WCHAR          *PWCH,       *LPWCH;
 typedef const WCHAR    *PCWCH,      *LPCWCH;
 typedef WCHAR          *PWSTR,      *LPWSTR,    *NWPSTR;
 typedef const WCHAR    *PCWSTR,     *LPCWSTR;
+typedef WCHAR          *PZZWSTR;
+typedef const WCHAR    *PCZZWSTR;
 
 /* Neutral character and string types */
 /* These are only defined for Winelib, i.e. _not_ defined for




More information about the wine-cvs mailing list