#ifndef _NTEXAPI_H
#if (PHNT_MODE != PHNT_MODE_KERNEL)
/**
* The NtSetDefaultLocale routine sets the default locale identifier for either
* the user profile or the system.
*
* \param UserProfile If TRUE, sets the user default locale; otherwise, sets the system default locale.
* \param DefaultLocaleId The locale identifier (LCID) to set.
* \return NTSTATUS Successful or errant status.
* \see https://learn.microsoft.com/en-us/windows/win32/api/winnls/nf-winnls-setthreadlocale
*/
NTSYSCALLAPI
NTSTATUS
NTAPI
NtSetDefaultLocale(
_In_ BOOLEAN UserProfile,
_In_ LCID DefaultLocaleId
);
View code on GitHub#ifndef _NTZWAPI_H
NTSYSCALLAPI
NTSTATUS
NTAPI
ZwSetDefaultLocale(
_In_ BOOLEAN UserProfile,
_In_ LCID DefaultLocaleId
);
View code on GitHubNo description available.
Function NtSetDefaultLocale sets default Kernel or User Mode locale. See Microsoft SDK for detailed description about locale codes.
If set, function sets UserMode locale. If not, KernelMode locale is modified.
Locale to set.