NtQueryDefaultLocale - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTEXAPI_H
#if (PHNT_MODE != PHNT_MODE_KERNEL)

// Locale

NTSYSCALLAPI
NTSTATUS
NTAPI
NtQueryDefaultLocale(
    _In_ BOOLEAN UserProfile,
    _Out_ PLCID DefaultLocaleId
    );

#endif
#endif

View code on GitHub
#ifndef _NTZWAPI_H

NTSYSCALLAPI
NTSTATUS
NTAPI
ZwQueryDefaultLocale(
    _In_ BOOLEAN UserProfile,
    _Out_ PLCID DefaultLocaleId
    );

#endif

View code on GitHub

Function NtQueryDefaultLocale returns current Locale Identifier. Locale Identifier if defined as DWORD value, and contains locale code, sublocale etc. For more information about LCID see Microsoft SDK.

UserProfile

If set, function returns UserMode default locale. If not, result is system locale.

DefaultLocaleId

Pointer to LCID value receiving current locale.

Documented by

See also