MAKELANGID macro

Creates a language identifier from a primary language identifier and a sublanguage identifier.

Syntax

void MAKELANGID(
   p,
   s
);

Parameters

p

Primary language identifier. This identifier can be a predefined value or a value for a user-defined primary language. For a user-defined language, the identifier is a value in the range 0x0200 to 0x03FF. All other values are reserved for operating system use. For more information, see Language Identifier Constants and Strings.

s

Sublanguage identifier. This parameter can be a predefined sublanguage identifier or a user-defined sublanguage. For a user-defined sublanguage, the identifier is a value in the range 0x20 to 0x3F. All other values are reserved for operating system use. For more information, see Language Identifier Constants and Strings.

Return Value

None

Remarks

The following table shows combinations of usPrimaryLanguage and usSubLanguage that have special meaning.

Primary language identifier Sublanguage identifier Meaning
LANG_NEUTRAL SUBLANG_NEUTRAL Language neutral
LANG_NEUTRAL SUBLANG_DEFAULT User default language
LANG_NEUTRAL SUBLANG_SYS_DEFAULT System default language
LANG_NEUTRAL SUBLANG_CUSTOM_DEFAULT Windows Vista and later: Default custom locale
LANG_NEUTRAL SUBLANG_CUSTOM_UNSPECIFIED Windows Vista and later: Unspecified custom locale
LANG_NEUTRAL SUBLANG_UI_CUSTOM_DEFAULT Windows Vista and later: Default custom Multilingual User Interface locale

Requirements

   
Windows version Windows 2000 Professional [desktop apps only] Windows 2000 Server [desktop apps only]
Target Platform Windows
Header winnt.h (include Windows.h)

See Also

EnumSystemLocales

National Language Support

National Language Support Macros

PRIMARYLANGID

SUBLANGID