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 is given 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.

QuickInfo

  Windows NT: Requires version 3.1 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in winnls.h.
  Import Library: Use kernel32.lib.

See Also

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