PRIMARYLANGID macro

Extracts a primary language identifier from a language identifier.

Syntax


WORD PRIMARYLANGID(
  WORD 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

Returns the primary language identifier. It can be one of the predefined primary language identifiers or a user-defined primary language identifier. For more information, see MAKELANGID.

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
EnumSystemLocales
LANGIDFROMLCID
MAKELANGID
SUBLANGID

 

 

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.