NtSetDefaultLocale - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#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
    );

#endif
#endif

View code on GitHub
#ifndef _NTZWAPI_H

NTSYSCALLAPI
NTSTATUS
NTAPI
ZwSetDefaultLocale(
    _In_ BOOLEAN UserProfile,
    _In_ LCID DefaultLocaleId
    );

#endif

View code on GitHub

NtDoc

No description available.

NTinternals.net (undocumented.ntinternals.net)

Function NtSetDefaultLocale sets default Kernel or User Mode locale. See Microsoft SDK for detailed description about locale codes.

UserProfile

If set, function sets UserMode locale. If not, KernelMode locale is modified.

DefaultLocaleId

Locale to set.

Documented by

See also