PRIMARYLANGID

  BYTE PRIMARYLANGID (wLanguageID)    

The PRIMARYLANGID macro extracts a primary language ID from a language ID.

Parameters

wLanguageID

Specifies the language ID. This value is a combination of a primary language ID and a sublanguage ID and is usually created by the MAKELANGID macro.

Return Value

The return value will be one of the following primary language IDs:

LANG_NEUTRAL LANG_ALBANIAN
LANG_ARABIC LANG_BAHASA
LANG_BULGARIAN LANG_CATALAN
LANG_CHINESE LANG_CZECH
LANG_DANISH LANG_DUTCH
LANG_ENGLISH LANG_FINNISH
LANG_FRENCH LANG_GERMAN
LANG_GREEK LANG_HEBREW
LANG_HUNGARIAN LANG_ICELANDIC
LANG_ITALIAN LANG_JAPANESE
LANG_KOREAN LANG_NORWEGIAN
LANG_POLISH LANG_PORTUGUESE
LANG_RHAETO_ROMAN LANG_ROMANIAN
LANG_RUSSIAN LANG_SERBO_CROATIAN
LANG_SLOVAK LANG_SPANISH
LANG_SWEDISH LANG_THAI
LANG_TURKISH LANG_URDU

Comments

The PRIMARYLANGID macro is defined as:

#define PRIMARYLANGID(lgid) ((USHORT)(lgid) & 0x1ff)