Export (0) Print
Expand All

SUBLANGID (Windows CE 5.0)

Windows CE 5.0
Send Feedback

This macro extracts a sublanguage identifier from a language identifier.

WORD SUBLANGID( 
  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 secondary language identifier. The following table shows the secondary language identifiers that are defined.

SUBLANG_ARABIC_SAUDI_ARABIASUBLANG_GERMAN_AUSTRIAN
SUBLANG_ARABIC_IRAQSUBLANG_GERMAN_LUXEMBOURG
SUBLANG_ARABIC_EGYPTSUBLANG_GERMAN_LIECHTENSTEIN
SUBLANG_ARABIC_LIBYASUBLANG_ITALIAN
SUBLANG_ARABIC_ALGERIASUBLANG_ITALIAN_SWISS
SUBLANG_ARABIC_MOROCCOSUBLANG_KASHMIRI_INDIA
SUBLANG_ARABIC_TUNISIASUBLANG_KOREAN
SUBLANG_ARABIC_OMANSUBLANG_LITHUANIAN
SUBLANG_ARABIC_YEMENSUBLANG_LITHUANIAN_CLASSIC
SUBLANG_ARABIC_SYRIASUBLANG_MALAY_BRUNEI_DARUSSALAM
SUBLANG_ARABIC_JORDANSUBLANG_MALAY_MALAYSIA
SUBLANG_ARABIC_LEBANONSUBLANG_NEPALI_INDIA
SUBLANG_ARABIC_KUWAITSUBLANG_NEUTRAL
SUBLANG_ARABIC_UAESUBLANG_NORWEGIAN_BOKMAL
SUBLANG_ARABIC_BAHRAINSUBLANG_NORWEGIAN_NYNORSK
SUBLANG_ARABIC_QATARSUBLANG_PORTUGUESE
SUBLANG_AZERI_CYRILLICSUBLANG_PORTUGUESE_BRAZILIAN
SUBLANG_AZERI_LATINSUBLANG_SERBIAN_LATIN
SUBLANG_CHINESE_TRADITIONALSUBLANG_SERBIAN_CYRILLIC
SUBLANG_CHINESE_SIMPLIFIEDSUBLANG_SPANISH
SUBLANG_CHINESE_HONGKONGSUBLANG_SPANISH_MEXICAN
SUBLANG_CHINESE_SINGAPORESUBLANG_SPANISH_MODERN
SUBLANG_CHINESE_MACAUSUBLANG_SPANISH_GUATEMALA
SUBLANG_DEFAULTSUBLANG_SPANISH_COSTA_RICA
SUBLANG_DUTCHSUBLANG_SPANISH_PANAMA
SUBLANG_DUTCH_BELGIANSUBLANG_SPANISH_DOMINICAN_REPUBLIC
SUBLANG_ENGLISH_USSUBLANG_SPANISH_VENEZUELA
SUBLANG_ENGLISH_UKSUBLANG_SPANISH_COLOMBIA
SUBLANG_ENGLISH_AUSSUBLANG_SPANISH_PERU
SUBLANG_ENGLISH_CANSUBLANG_SPANISH_ARGENTINA
SUBLANG_ENGLISH_NZSUBLANG_SPANISH_ECUADOR
SUBLANG_ENGLISH_EIRESUBLANG_SPANISH_CHILE
SUBLANG_ENGLISH_SOUTH_AFRICASUBLANG_SPANISH_URUGUAY
SUBLANG_ENGLISH_JAMAICASUBLANG_SPANISH_PARAGUAY
SUBLANG_ENGLISH_CARIBBEANSUBLANG_SPANISH_BOLIVIA
SUBLANG_ENGLISH_BELIZESUBLANG_SPANISH_EL_SALVADOR
SUBLANG_ENGLISH_TRINIDADSUBLANG_SPANISH_HONDURAS
SUBLANG_ENGLISH_PHILIPPINESSUBLANG_SPANISH_NICARAGUA
SUBLANG_ENGLISH_ZIMBABWESUBLANG_SPANISH_PUERTO_RICO
SUBLANG_FRENCHSUBLANG_SWEDISH
SUBLANG_FRENCH_BELGIANSUBLANG_SWEDISH_FINLAND
SUBLANG_FRENCH_CANADIANSUBLANG_SYS_DEFAULT
SUBLANG_FRENCH_SWISSSUBLANG_URDU_INDIA
SUBLANG_FRENCH_LUXEMBOURGSUBLANG_URDU_PAKISTAN
SUBLANG_FRENCH_MONACOSUBLANG_UZBEK_CYRILLIC
SUBLANG_GERMANSUBLANG_UZBEK_LATIN
SUBLANG_GERMAN_SWISS 

Remarks

The SUBLANGID macro is defined as follows:

#define SUBLANGID(lgid)        ((WORD  )(lgid) >> 10) 

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 | PRIMARYLANGID


Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.


Show:
© 2015 Microsoft