Partager via


PRIMARYLANGID

This macro extracts a primary language identifier from a language identifier.

WORD PRIMARYLANGID( 
  WORD lgid 
); 

Parameters

  • lgid
    Value that specifies the language identifier. This value is a combination of a primary language identifier and a secondary language identifier and is usually created by using the MAKELANGID macro.

Return Values

The return value is a primary language identifier. The following table shows the primary language identifiers that 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_UKRAINIAN
LANG_JAPANESE LANG_URDU
LANG_KANNADA LANG_UZBEK
LANG_KASHMIRI LANG_VIETNAMESE
LANG_KAZAK  

Remarks

The PRIMARYLANGID macro is defined as follows:

#define PRIMARYLANGID(lgid)    ((WORD  )(lgid) & 0x3ff) 

For more information about language identifiers and locales, see Language Identifiers and Locales.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Winnt.h.

See Also

Language Identifiers and Locales | MAKELANGID | SUBLANGID

 Last updated on Friday, April 09, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.