Share via


MAKELCID (Compact 2013)

3/28/2014

This macro creates a locale identifier from a language identifier.

Syntax

DWORD MAKELCID( 
  WORD wLanguageID, 
  WORD wSortID 
);

Parameters

  • wLanguageID
    Value that specifies the language identifier. This parameter is a combination of a primary language identifier and a secondary language identifier and is usually created by using the MAKELANGID macro.
  • wSortID
    Sort identifier. The following table shows the defined sort identifiers.

    Value

    Description

    SORT_DEFAULT

    Specifies the default sort.

    SORT_JAPANESE_XJIS

    Specifies Japanese XJIS order.

    SORT_JAPANESE_UNICODE

    Specifies Japanese Unicode order.

    SORT_CHINESE_BIG5

    Specifies Chinese BIG5 order.

    SORT_CHINESE_UNICODE

    Specifies Chinese Unicode order.

    SORT_KOREAN_KSC

    Specifies Korean KSC order.

    SORT_KOREAN_UNICODE

    Specifies Korean Unicode order.

Return Value

The return value is a locale identifier.

Remarks

The MAKELCID macro is defined as follows:

#define MAKELCID(lgid, srtid)  \ 
    ((DWORD)((((DWORD)((WORD  )(srtid))) << 16) |  \ 
            ((DWORD)((WORD  )(lgid))))) 

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

Requirements

Header

winnt.h

See Also

Reference

National/Regional Language Support (NLS) Macros
Language Identifiers
MAKELANGID