Platform SDK: International Features

GetThreadLocale

The GetThreadLocale function returns the calling thread's current locale.

LCID GetThreadLocale(void);

Parameters

This function has no parameters.

Return Values

The function returns the calling thread's locale identifier.

Remarks

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.

Requirements

  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.

See Also

National Language Support Overview, National Language Support Functions, SetThreadLocale, GetSystemDefaultLCID, GetUserDefaultLCID