1914{
1916 USHORT *ansi_ptr, *oem_ptr;
1919 const WCHAR *user_locale_name;
1923
1927
1930
1933 {
1937 }
1940
1943
1945
1950
1957
1959
1963 {
1969 }
1970
1971
1972
1973
1975 count =
sizeof(bufferW);
1977 {
1978 if (!
wcscmp( bufferW, user_locale_name ))
return;
1979 TRACE(
"updating registry, locale changed %s -> %s\n",
1981 }
1982 else TRACE(
"updating registry, locale changed none -> %s\n",
debugstr_w(user_locale_name) );
1983
1985
1988 {
1996 }
1997}
#define RegCloseKey(hKey)
LONG WINAPI RegCreateKeyExW(_In_ HKEY hKey, _In_ LPCWSTR lpSubKey, _In_ DWORD Reserved, _In_opt_ LPWSTR lpClass, _In_ DWORD dwOptions, _In_ REGSAM samDesired, _In_opt_ LPSECURITY_ATTRIBUTES lpSecurityAttributes, _Out_ PHKEY phkResult, _Out_opt_ LPDWORD lpdwDisposition)
LONG WINAPI RegSetValueExW(_In_ HKEY hKey, _In_ LPCWSTR lpValueName, _In_ DWORD Reserved, _In_ DWORD dwType, _In_ CONST BYTE *lpData, _In_ DWORD cbData)
LONG WINAPI RegQueryValueExW(_In_ HKEY hkeyorg, _In_ LPCWSTR name, _In_ LPDWORD reserved, _In_ LPDWORD type, _In_ LPBYTE data, _In_ LPDWORD count)
#define GetEnvironmentVariableW(x, y, z)
#define LOCALE_NAME_USER_DEFAULT
static void load_locale_nls(void)
static HMODULE kernelbase_handle
static CPTABLEINFO ansi_cpinfo
DWORD WINAPI DECLSPEC_HOTPATCH GetDynamicTimeZoneInformation(DYNAMIC_TIME_ZONE_INFORMATION *info)
static void load_sortdefault_nls(void)
static const struct sortguid * get_language_sort(const WCHAR *name)
const NLS_LOCALE_DATA *WINAPI NlsValidateLocale(LCID *lcid, ULONG flags)
static const NLS_LOCALE_DATA * get_locale_by_name(const WCHAR *name, LCID *lcid)
static const struct sortguid * current_locale_sort
static const WCHAR * locale_strings
static void update_locale_registry(void)
static const NLS_LOCALE_DATA * system_locale
static CPTABLEINFO oem_cpinfo
UINT WINAPI GetOEMCP(void)
static struct norm_table * norm_info
static const NLS_LOCALE_DATA * user_locale
_ACRTIMP __msvcrt_ulong __cdecl wcstoul(const wchar_t *, wchar_t **, int)
_ACRTIMP int __cdecl wcscmp(const wchar_t *, const wchar_t *)
GLuint GLuint GLsizei count
#define REG_OPTION_NON_VOLATILE
#define LOCALE_NAME_MAX_LENGTH
#define LOCALE_CUSTOM_UNSPECIFIED
#define LOCALE_CUSTOM_DEFAULT
NTSTATUS NTAPI NtQueryDefaultLocale(IN BOOLEAN UserProfile, OUT PLCID DefaultLocaleId)
#define TIME_ZONE_ID_INVALID
NTSYSAPI void WINAPI RtlInitCodePageTable(USHORT *, CPTABLEINFO *)
NTSYSAPI NTSTATUS WINAPI NtGetNlsSectionPtr(ULONG, ULONG, void *, void **, SIZE_T *)
#define HKEY_LOCAL_MACHINE
#define HKEY_CURRENT_USER