MAKESORTLCID macro

Constructs a locale identifier (LCID) from a language identifier, a sort order identifier, and the sort version.

Syntax


DWORD MAKESORTLCID(
   WORD wLanguageID,
   WORD wSortID,
   WORD wSortVersion
);

Parameters

wLanguageID

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

Sort order identifier.

wSortVersion

Reserved; must be 0.

Return value

Returns the LCID.

Remarks

LOCALE_INVARIANT represents a special locale-independent locale identifier. It is designed for system-level functions that require consistent results regardless of the locale that the user has chosen, for example, sorting in the file system. Typically, an application does not use LOCALE_INVARIANT because it expects the results of an action to depend on the rules governing each individual locale.

LOCALE_INVARIANT is composed of a language identifier consisting of LANG_INVARIANT for the primary language and SUBLANG_NEUTRAL for the sublanguage. SORT_DEFAULT is used for the sort order identifier.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Winnt.h (include Windows.h)

See also

National Language Support
National Language Support Macros
MAKELANGID

 

 

Show: