Platform SDK: International Features

MAKESORTLCID

The MAKESORTLCID macro constructs the locale identifier from a language identifier, a sort identifier, and the sort version.

DWORD MAKESORTLCID(
  WORD wLanguageID,  // language identifier
  WORD wSortID,      // sorting identifier
  WORD wSortVersion  // sort version 
);

Parameters

wLanguageID
Specifies the language identifier. This parameter is a combination of a primary language identifier and a sublanguage identifier and is usually created by using the MAKELANGID macro.
wSortID
Specifies the sort identifier. The following sort identifiers are defined.
Value Meaning
SORT_CHINESE_BIG5 Specifies Chinese BIG5 order.
SORT_CHINESE_BOPOMOFO Specifies traditional Chinese Bopomofo order.
SORT_CHINESE_PRC Specifies PRC Chinese Stroke Count order.
SORT_CHINESE_PRCP Specifies PRC Chinese Phonetic order.
SORT_CHINESE_UNICODE Specifies Chinese Unicode order.
SORT_DEFAULT Specifies the default sort.
SORT_GEORGIAN_MODERN Specifies Georgian Modern order.
SORT_GEORGIAN_TRADITIONAL Specifies Georgian Traditional order.
SORT_GERMAN_PHONE_BOOK Specifies German Phone Book order.
SORT_HUNGARIAN_DEFAULT Specifies Hungarian Default order.
SORT_HUNGARIAN_TECHNICAL Specifies Hungarian Technical order.
SORT_JAPANESE_XJIS Specifies Japanese XJIS order.
SORT_JAPANESE_UNICODE Specifies Japanese Unicode order.
SORT_KOREAN_KSC Specifies Korean KSC order.
SORT_KOREAN_UNICODE Specifies Korean Unicode order.

wSortVersion
Reserved. Must be zero.

Return Values

The return value is a locale identifier.

Requirements

  Windows NT/2000: Requires Windows NT 3.1 or later.
  Windows 95/98: Requires Windows 95 or later.
  Header: Declared in Winnt.h; include Windows.h.

See Also

National Language Support Overview, National Language Support Macros, National Language Support Overview, National Language Support Macros, MAKELANGID