Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

MAKELCID

Windows Mobile 6.5
A version of this page is also available for
4/8/2010

This macro creates a locale identifier from a language identifier.


DWORD MAKELCID( 
  WORD wLanguageID, 
  WORD wSortID 
);

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.

The return value is a locale identifier.

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 and Locales.

Headerwinnt.h
Windows Embedded CEWindows CE .NET 4.0 and later
Windows MobileWindows Mobile Version 5.0 and later

Community Additions

Show:
© 2015 Microsoft