Prev Next
PRIMARYLANGID info
The PRIMARYLANGID macro extracts a primary language identifier from a
language identifier.
WORD PRIMARYLANGID(
WORD lgid
|
// language identifier
|
);
|
|
Parameters
-
lgid
-
Specifies the language identifier. This value is a combination of a primary
language identifier and a sublanguage identifier and is usually created by
using the MAKELANGID macro.
Return Values
-
The return value is a primary language identifier. The following primary
language identifiers are defined:
-
LANG_AFRIKAANS
|
LANG_ICELANDIC
|
LANG_ALBANIAN
|
LANG_INDONESIAN
|
LANG_ARABIC
|
LANG_ITALIAN
|
LANG_BASQUE
|
LANG_JAPANESE
|
LANG_BELARUSIAN
|
LANG_KOREAN
|
LANG_BULGARIAN
|
LANG_LATVIAN
|
LANG_CATALAN
|
LANG_LITHUANIAN
|
LANG_CHINESE
|
LANG_NEUTRAL
|
LANG_CROATIAN
|
LANG_NORWEGIAN
|
LANG_CZECH
|
LANG_POLISH
|
LANG_DANISH
|
LANG_PORTUGUESE
|
LANG_DUTCH
|
LANG_ROMANIAN
|
LANG_ENGLISH
|
LANG_RUSSIAN
|
LANG_ESTONIAN
|
LANG_SERBIAN
|
LANG_FAEROESE
|
LANG_SLOVAK
|
LANG_FARSI
|
LANG_SLOVENIAN
|
LANG_FINNISH
|
LANG_SPANISH
|
LANG_FRENCH
|
LANG_SWEDISH
|
LANG_GERMAN
|
LANG_THAI
|
LANG_GREEK
|
LANG_TURKISH
|
LANG_HEBREW
|
LANG_UKRANIAN
|
LANG_HUNGARIAN
|
LANG_VIETNAMESE
|
Remarks
The PRIMARYLANGID macro is defined as follows:
#define PRIMARYLANGID(lgid) ((WORD )(lgid) & 0x3ff)
See Also
EnumSystemLocales, LANGIDFROMLCID,
MAKELANGID, SUBLANGID
|