mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 05:10:36 +00:00
kernel32: Add stub for GetSystemPreferredUILanguages.
Signed-off-by: Stefan Leichter <Stefan.Leichter@camLine.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
c160ad9e89
commit
1c3c9f06c5
|
@ -23,7 +23,7 @@
|
|||
@ stub GetProcessPreferredUILanguages
|
||||
@ stdcall GetSystemDefaultLCID() kernel32.GetSystemDefaultLCID
|
||||
@ stdcall GetSystemDefaultLangID() kernel32.GetSystemDefaultLangID
|
||||
@ stub GetSystemPreferredUILanguages
|
||||
@ stdcall GetSystemPreferredUILanguages(long ptr ptr ptr) kernel32.GetSystemPreferredUILanguages
|
||||
@ stdcall GetThreadLocale() kernel32.GetThreadLocale
|
||||
@ stdcall GetThreadPreferredUILanguages(long ptr ptr ptr) kernel32.GetThreadPreferredUILanguages
|
||||
@ stdcall GetThreadUILanguage() kernel32.GetThreadUILanguage
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
@ stub GetProcessPreferredUILanguages
|
||||
@ stdcall GetSystemDefaultLCID() kernel32.GetSystemDefaultLCID
|
||||
@ stdcall GetSystemDefaultLangID() kernel32.GetSystemDefaultLangID
|
||||
@ stub GetSystemPreferredUILanguages
|
||||
@ stdcall GetSystemPreferredUILanguages(long ptr ptr ptr) kernel32.GetSystemPreferredUILanguages
|
||||
@ stdcall GetThreadLocale() kernel32.GetThreadLocale
|
||||
@ stdcall GetThreadPreferredUILanguages(long ptr ptr ptr) kernel32.GetThreadPreferredUILanguages
|
||||
@ stdcall GetThreadUILanguage() kernel32.GetThreadUILanguage
|
||||
|
|
|
@ -824,7 +824,7 @@
|
|||
@ stdcall GetSystemFirmwareTable(long long ptr long)
|
||||
@ stdcall GetSystemInfo(ptr)
|
||||
@ stdcall GetSystemPowerStatus(ptr)
|
||||
# @ stub GetSystemPreferredUILanguages
|
||||
@ stdcall GetSystemPreferredUILanguages(long ptr ptr ptr)
|
||||
@ stdcall GetSystemRegistryQuota(ptr ptr)
|
||||
@ stdcall GetSystemTime(ptr)
|
||||
@ stdcall GetSystemTimeAdjustment(ptr ptr ptr)
|
||||
|
|
|
@ -1048,6 +1048,32 @@ INT WINAPI GetSystemDefaultLocaleName(LPWSTR localename, INT len)
|
|||
return LCIDToLocaleName(lcid, localename, len, 0);
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
* GetSystemPreferredUILanguages (KERNEL32.@)
|
||||
*/
|
||||
BOOL WINAPI GetSystemPreferredUILanguages(DWORD flags, ULONG* count, WCHAR* buffer, ULONG* size)
|
||||
{
|
||||
if (flags & ~(MUI_LANGUAGE_NAME | MUI_LANGUAGE_ID | MUI_MACHINE_LANGUAGE_SETTINGS))
|
||||
{
|
||||
SetLastError(ERROR_INVALID_PARAMETER);
|
||||
return FALSE;
|
||||
}
|
||||
if ((flags & MUI_LANGUAGE_NAME) && (flags & MUI_LANGUAGE_ID))
|
||||
{
|
||||
SetLastError(ERROR_INVALID_PARAMETER);
|
||||
return FALSE;
|
||||
}
|
||||
if (*size && !buffer)
|
||||
{
|
||||
SetLastError(ERROR_INVALID_PARAMETER);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
FIXME("(0x%x %p %p %p) stub\n", flags, count, buffer, size);
|
||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
* GetUserDefaultUILanguage (KERNEL32.@)
|
||||
*
|
||||
|
|
|
@ -906,6 +906,7 @@ WINBASEAPI BOOL WINAPI GetStringTypeExW(LCID,DWORD,LPCWSTR,INT,LPWORD);
|
|||
WINBASEAPI LANGID WINAPI GetSystemDefaultLangID(void);
|
||||
WINBASEAPI LCID WINAPI GetSystemDefaultLCID(void);
|
||||
WINBASEAPI LANGID WINAPI GetSystemDefaultUILanguage(void);
|
||||
WINBASEAPI BOOL WINAPI GetSystemPreferredUILanguages(DWORD,ULONG*,WCHAR*,ULONG*);
|
||||
WINBASEAPI LCID WINAPI GetThreadLocale(void);
|
||||
WINBASEAPI INT WINAPI GetTimeFormatA(LCID,DWORD,const SYSTEMTIME*,LPCSTR,LPSTR,INT);
|
||||
WINBASEAPI INT WINAPI GetTimeFormatEx(LPCWSTR,DWORD,const SYSTEMTIME*,LPCWSTR,LPWSTR,INT);
|
||||
|
|
Loading…
Reference in a new issue