Platform SDK: International Features

GetUserDefaultLCID

The GetUserDefaultLCID function retrieves the user default–locale identifier.

LCID GetUserDefaultLCID(void);

Parameters

This function has no parameters.

Return Values

If the function succeeds, the return value is the user default–locale identifier. If the function fails, the return value is zero.

Remarks

On single-user systems, the return value is the same as that returned by GetSystemDefaultLCID.

For more information about locale identifiers, see Locales.

MAPI: For more information, see Syntax and Limitations for Win32 Functions Useful in MAPI Development.

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, GetLocaleInfo, GetSystemDefaultLCID, MAKELCID