The SORTIDFROMLCID macro retrieves a sort identifier from a locale identifier.
WORD SORTIDFROMLCID(
LCID lcid // locale identifier
);
The return value is a sort identifier. The following sort identifiers are defined:
Value | Meaning |
---|---|
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 SORTIDFROMLCID macro is defined as follows:
#define SORTIDFROMLCID(lcid) \
((WORD )((((DWORD)(lcid)) & NLS_VALID_LOCALE_MASK) >> 16))
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in winnt.h.
National Language Support Overview, National Language Support Macros, MAKELANGID, MAKELCID, PRIMARYLANGID, SUBLANGID