MAKESORTLCID macro (winnt.h)

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

Syntax

void MAKESORTLCID(
   lgid,
   srtid,
   ver
);

Parameters

lgid

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.

srtid

Sort order identifier.

ver

Reserved; must be 0.

Return value

None

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

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header winnt.h (include Windows.h)

See also

MAKELANGID

National Language Support

National Language Support Macros