The PRIMARYLANGID macro extracts a primary language identifier from a language identifier.
WORD PRIMARYLANGID(
WORD lgid // language identifier
);
The return value is a primary language identifier. The following primary language identifiers are defined:
LANG_AFRIKAANS | LANG_KONKANI |
LANG_ALBANIAN | LANG_KOREAN |
LANG_ARABIC | LANG_LATVIAN |
LANG_ARMENIAN | LANG_LITHUANIAN |
LANG_ASSAMESE | LANG_MACEDONIAN |
LANG_AZERI | LANG_MALAY |
LANG_BASQUE | LANG_MALAYALAM |
LANG_BELARUSIAN | LANG_MANIPURI |
LANG_BENGALI | LANG_MARATHI |
LANG_BULGARIAN | LANG_NEPALI |
LANG_CATALAN | LANG_NEUTRAL |
LANG_CHINESE | LANG_NORWEGIAN |
LANG_CROATIAN | LANG_ORIYA |
LANG_CZECH | LANG_POLISH |
LANG_DANISH | LANG_PORTUGUESE |
LANG_DUTCH | LANG_PUNJABI |
LANG_ENGLISH | LANG_ROMANIAN |
LANG_ESTONIAN | LANG_RUSSIAN |
LANG_FAEROESE | LANG_SANSKRIT |
LANG_FARSI | LANG_SERBIAN |
LANG_FINNISH | LANG_SINDHI |
LANG_FRENCH | LANG_SLOVAK |
LANG_GEORGIAN | LANG_SLOVENIAN |
LANG_GERMAN | LANG_SPANISH |
LANG_GREEK | LANG_SWAHILI |
LANG_GUJARATI | LANG_SWEDISH |
LANG_HEBREW | LANG_TAMIL |
LANG_HINDI | LANG_TATAR |
LANG_HUNGARIAN | LANG_TELUGU |
LANG_ICELANDIC | LANG_THAI |
LANG_INDONESIAN | LANG_TURKISH |
LANG_ITALIAN | LANG_UKRANIAN |
LANG_JAPANESE | LANG_URDU |
LANG_KANNADA | LANG_UZBEK |
LANG_KASHMIRI | LANG_VIETNAMESE |
LANG_KAZAK |
The PRIMARYLANGID macro is defined as follows:
#define PRIMARYLANGID(lgid) ((WORD )(lgid) & 0x3ff)
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Requires version 1.0 or later.
Header: Declared in winnt.h.
National Language Support Overview, National Language Support Macros, EnumSystemLocales, LANGIDFROMLCID, MAKELANGID, SUBLANGID