Platform SDK: International Features

GetUserDefaultLangID

The GetUserDefaultLangID function retrieves the language identifier of the current user locale.

LANGID GetUserDefaultLangID(void);

Parameters

This function has no parameters.

Return Values

If the function is successful, the return value is the language identifier of the current user locale. If the function fails, the return value is zero.

Remarks

The return value is not necessarily the same as that returned by GetSystemDefaultLangID, even if the computer is a single-user system.

For more information about language identifiers, see Language Identifiers and Locale Information.

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, GetSystemDefaultLangID, MAKELANGID