Platform SDK: International Features |
The GetThreadLocale function returns the calling thread's current locale.
LCID GetThreadLocale(void);
This function has no parameters.
The function returns the calling thread's locale identifier.
When a thread is created, it uses the system default–thread locale. The system reads the system default–thread locale from the registry when the system boots. This system default can be modified for future process and thread creation using Control Panel's International application.
For more information about locale identifiers, see Locales.
Windows NT/2000: Requires Windows NT 3.1 or later.
Windows 95/98: Requires Windows 95 or later.
Header: Declared in Winnls.h; include Windows.h.
Library: Use Kernel32.lib.
National Language Support Overview, National Language Support Functions, SetThreadLocale, GetSystemDefaultLCID, GetUserDefaultLCID