kernel32: Added stub for Set/GetProcessPreferredUILanguages.

Signed-off-by: Manuel Edelmann <varris@protonmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Manuel Edelmann 2019-05-20 23:54:14 +02:00 committed by Alexandre Julliard
parent 9fec2e0d95
commit bc7e98a1a9
6 changed files with 27 additions and 9 deletions

View File

@ -14,7 +14,7 @@
@ stub GetNLSVersion @ stub GetNLSVersion
@ stub GetNLSVersionEx @ stub GetNLSVersionEx
@ stdcall GetOEMCP() kernel32.GetOEMCP @ stdcall GetOEMCP() kernel32.GetOEMCP
@ stub GetProcessPreferredUILanguages @ stdcall GetProcessPreferredUILanguages(long ptr ptr ptr) kernel32.GetProcessPreferredUILanguages
@ stdcall GetSystemDefaultLCID() kernel32.GetSystemDefaultLCID @ stdcall GetSystemDefaultLCID() kernel32.GetSystemDefaultLCID
@ stdcall GetSystemDefaultLangID() kernel32.GetSystemDefaultLangID @ stdcall GetSystemDefaultLangID() kernel32.GetSystemDefaultLangID
@ stdcall GetSystemPreferredUILanguages(long ptr ptr ptr) kernel32.GetSystemPreferredUILanguages @ stdcall GetSystemPreferredUILanguages(long ptr ptr ptr) kernel32.GetSystemPreferredUILanguages

View File

@ -20,7 +20,7 @@
@ stub GetNLSVersion @ stub GetNLSVersion
@ stub GetNLSVersionEx @ stub GetNLSVersionEx
@ stdcall GetOEMCP() kernel32.GetOEMCP @ stdcall GetOEMCP() kernel32.GetOEMCP
@ stub GetProcessPreferredUILanguages @ stdcall GetProcessPreferredUILanguages(long ptr ptr ptr) kernel32.GetProcessPreferredUILanguages
@ stdcall GetSystemDefaultLCID() kernel32.GetSystemDefaultLCID @ stdcall GetSystemDefaultLCID() kernel32.GetSystemDefaultLCID
@ stdcall GetSystemDefaultLangID() kernel32.GetSystemDefaultLangID @ stdcall GetSystemDefaultLangID() kernel32.GetSystemDefaultLangID
@ stdcall GetSystemPreferredUILanguages(long ptr ptr ptr) kernel32.GetSystemPreferredUILanguages @ stdcall GetSystemPreferredUILanguages(long ptr ptr ptr) kernel32.GetSystemPreferredUILanguages
@ -50,7 +50,7 @@
@ stdcall ResolveLocaleName(wstr ptr long) kernel32.ResolveLocaleName @ stdcall ResolveLocaleName(wstr ptr long) kernel32.ResolveLocaleName
@ stdcall SetCalendarInfoW(long long long wstr) kernel32.SetCalendarInfoW @ stdcall SetCalendarInfoW(long long long wstr) kernel32.SetCalendarInfoW
@ stdcall SetLocaleInfoW(long long wstr) kernel32.SetLocaleInfoW @ stdcall SetLocaleInfoW(long long wstr) kernel32.SetLocaleInfoW
@ stub SetProcessPreferredUILanguages @ stdcall SetProcessPreferredUILanguages(long ptr ptr) kernel32.SetProcessPreferredUILanguages
@ stdcall SetThreadLocale(long) kernel32.SetThreadLocale @ stdcall SetThreadLocale(long) kernel32.SetThreadLocale
@ stdcall SetThreadPreferredUILanguages(long ptr ptr) kernel32.SetThreadPreferredUILanguages @ stdcall SetThreadPreferredUILanguages(long ptr ptr) kernel32.SetThreadPreferredUILanguages
@ stdcall SetThreadUILanguage(long) kernel32.SetThreadUILanguage @ stdcall SetThreadUILanguage(long) kernel32.SetThreadUILanguage

View File

@ -21,7 +21,7 @@
@ stub GetNLSVersion @ stub GetNLSVersion
@ stub GetNLSVersionEx @ stub GetNLSVersionEx
@ stdcall GetOEMCP() kernel32.GetOEMCP @ stdcall GetOEMCP() kernel32.GetOEMCP
@ stub GetProcessPreferredUILanguages @ stdcall GetProcessPreferredUILanguages(long ptr ptr ptr) kernel32.GetProcessPreferredUILanguages
@ stdcall GetSystemDefaultLCID() kernel32.GetSystemDefaultLCID @ stdcall GetSystemDefaultLCID() kernel32.GetSystemDefaultLCID
@ stdcall GetSystemDefaultLangID() kernel32.GetSystemDefaultLangID @ stdcall GetSystemDefaultLangID() kernel32.GetSystemDefaultLangID
@ stdcall GetSystemPreferredUILanguages(long ptr ptr ptr) kernel32.GetSystemPreferredUILanguages @ stdcall GetSystemPreferredUILanguages(long ptr ptr ptr) kernel32.GetSystemPreferredUILanguages
@ -51,7 +51,7 @@
@ stdcall ResolveLocaleName(wstr ptr long) kernel32.ResolveLocaleName @ stdcall ResolveLocaleName(wstr ptr long) kernel32.ResolveLocaleName
@ stdcall SetCalendarInfoW(long long long wstr) kernel32.SetCalendarInfoW @ stdcall SetCalendarInfoW(long long long wstr) kernel32.SetCalendarInfoW
@ stdcall SetLocaleInfoW(long long wstr) kernel32.SetLocaleInfoW @ stdcall SetLocaleInfoW(long long wstr) kernel32.SetLocaleInfoW
@ stub SetProcessPreferredUILanguages @ stdcall SetProcessPreferredUILanguages(long ptr ptr) kernel32.SetProcessPreferredUILanguages
@ stdcall SetThreadLocale(long) kernel32.SetThreadLocale @ stdcall SetThreadLocale(long) kernel32.SetThreadLocale
@ stdcall SetThreadPreferredUILanguages(long ptr ptr) kernel32.SetThreadPreferredUILanguages @ stdcall SetThreadPreferredUILanguages(long ptr ptr) kernel32.SetThreadPreferredUILanguages
@ stdcall SetThreadUILanguage(long) kernel32.SetThreadUILanguage @ stdcall SetThreadUILanguage(long) kernel32.SetThreadUILanguage

View File

@ -786,7 +786,7 @@
@ stdcall GetProcessIdOfThread(long) @ stdcall GetProcessIdOfThread(long)
@ stdcall GetProcessIoCounters(long ptr) @ stdcall GetProcessIoCounters(long ptr)
@ stdcall GetProcessMitigationPolicy(long long ptr long) @ stdcall GetProcessMitigationPolicy(long long ptr long)
# @ stub GetProcessPreferredUILanguages @ stdcall GetProcessPreferredUILanguages(long ptr ptr ptr)
@ stdcall GetProcessPriorityBoost(long ptr) @ stdcall GetProcessPriorityBoost(long ptr)
@ stdcall GetProcessShutdownParameters(ptr ptr) @ stdcall GetProcessShutdownParameters(ptr ptr)
# @ stub GetProcessorSystemCycleTime # @ stub GetProcessorSystemCycleTime
@ -1429,7 +1429,7 @@
@ stdcall SetProcessAffinityUpdateMode(long long) @ stdcall SetProcessAffinityUpdateMode(long long)
@ stdcall SetProcessDEPPolicy(long) @ stdcall SetProcessDEPPolicy(long)
@ stdcall SetProcessMitigationPolicy(long ptr long) @ stdcall SetProcessMitigationPolicy(long ptr long)
# @ stub SetProcessPreferredUILanguages @ stdcall SetProcessPreferredUILanguages(long ptr ptr)
@ stdcall SetProcessPriorityBoost(long long) @ stdcall SetProcessPriorityBoost(long long)
@ stdcall SetProcessShutdownParameters(long long) @ stdcall SetProcessShutdownParameters(long long)
# @ stub SetProcessUserModeExceptionPolicy # @ stub SetProcessUserModeExceptionPolicy

View File

@ -1285,6 +1285,15 @@ static BOOL get_dummy_preferred_ui_language( DWORD flags, ULONG *count, WCHAR *b
} }
/***********************************************************************
* GetProcessPreferredUILanguages (KERNEL32.@)
*/
BOOL WINAPI GetProcessPreferredUILanguages( DWORD flags, ULONG *count, WCHAR *buf, ULONG *size )
{
FIXME( "%08x, %p, %p %p\n", flags, count, buf, size );
return get_dummy_preferred_ui_language( flags, count, buf, size );
}
/*********************************************************************** /***********************************************************************
* GetSystemPreferredUILanguages (KERNEL32.@) * GetSystemPreferredUILanguages (KERNEL32.@)
*/ */
@ -1309,6 +1318,15 @@ BOOL WINAPI GetSystemPreferredUILanguages(DWORD flags, ULONG* count, WCHAR* buff
return get_dummy_preferred_ui_language( flags, count, buffer, size ); return get_dummy_preferred_ui_language( flags, count, buffer, size );
} }
/***********************************************************************
* SetProcessPreferredUILanguages (KERNEL32.@)
*/
BOOL WINAPI SetProcessPreferredUILanguages( DWORD flags, PCZZWSTR buffer, PULONG count )
{
FIXME("%u, %p, %p\n", flags, buffer, count );
return TRUE;
}
/*********************************************************************** /***********************************************************************
* SetThreadPreferredUILanguages (KERNEL32.@) * SetThreadPreferredUILanguages (KERNEL32.@)
*/ */

View File

@ -633,7 +633,7 @@
# @ stub GetProcessInformation # @ stub GetProcessInformation
# @ stub GetProcessMemoryInfo # @ stub GetProcessMemoryInfo
@ stdcall GetProcessMitigationPolicy(long long ptr long) kernel32.GetProcessMitigationPolicy @ stdcall GetProcessMitigationPolicy(long long ptr long) kernel32.GetProcessMitigationPolicy
@ stub GetProcessPreferredUILanguages @ stdcall GetProcessPreferredUILanguages(long ptr ptr ptr) kernel32.GetProcessPreferredUILanguages
@ stdcall GetProcessPriorityBoost(long ptr) kernel32.GetProcessPriorityBoost @ stdcall GetProcessPriorityBoost(long ptr) kernel32.GetProcessPriorityBoost
@ stdcall GetProcessShutdownParameters(ptr ptr) kernel32.GetProcessShutdownParameters @ stdcall GetProcessShutdownParameters(ptr ptr) kernel32.GetProcessShutdownParameters
@ stdcall GetProcessTimes(long ptr ptr ptr ptr) kernel32.GetProcessTimes @ stdcall GetProcessTimes(long ptr ptr ptr ptr) kernel32.GetProcessTimes
@ -1458,7 +1458,7 @@
# @ stub SetProcessGroupAffinity # @ stub SetProcessGroupAffinity
# @ stub SetProcessInformation # @ stub SetProcessInformation
@ stdcall SetProcessMitigationPolicy(long ptr long) kernel32.SetProcessMitigationPolicy @ stdcall SetProcessMitigationPolicy(long ptr long) kernel32.SetProcessMitigationPolicy
# @ stub SetProcessPreferredUILanguages @ stdcall SetProcessPreferredUILanguages(long ptr ptr) kernel32.SetProcessPreferredUILanguages
@ stdcall SetProcessPriorityBoost(long long) kernel32.SetProcessPriorityBoost @ stdcall SetProcessPriorityBoost(long long) kernel32.SetProcessPriorityBoost
@ stdcall SetProcessShutdownParameters(long long) kernel32.SetProcessShutdownParameters @ stdcall SetProcessShutdownParameters(long long) kernel32.SetProcessShutdownParameters
# @ stub SetProcessValidCallTargets # @ stub SetProcessValidCallTargets