PRIMARYLANGID macro (winnt.h)

Extracts a primary language identifier from a language identifier.

Syntax

void PRIMARYLANGID(
   lgid
);

Parameters

lgid

Language identifier. This value is a combination of a primary language identifier and a sublanguage identifier and is usually created by using the MAKELANGID macro.

Return value

None

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

EnumSystemLocales

LANGIDFROMLCID

MAKELANGID

National Language Support

National Language Support Macros

SUBLANGID