|
Overview |
|
|
|
Group |
|
|
|
Quick Info
Windows NT
| Yes
| Win95
| Yes
| Win32s
| Yes
| Import Library
|
| Header File
| winnt.h
| Unicode
| No
| Platform Notes
| None
|
|
|
PRIMARYLANGID
The PRIMARYLANGID macro extracts a primary language identifier from a language identifier.
WORD PRIMARYLANGID(
WORD lgid
| // language identifier
| );
|
|
Parameters
lgid
Specifies the 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 Values
The return value is a primary language identifier. The following primary
language identifiers are defined:
LANG_AFRIKAANS
| LANG_ICELANDIC
| LANG_ALBANIAN
| LANG_INDONESIAN
| LANG_ARABIC
| LANG_ITALIAN
| LANG_BASQUE
| LANG_JAPANESE
| LANG_BELARUSIAN
| LANG_KOREAN
| LANG_BULGARIAN
| LANG_LATVIAN
| LANG_CATALAN
| LANG_LITHUANIAN
| LANG_CHINESE
| LANG_NEUTRAL
| LANG_CROATIAN
| LANG_NORWEGIAN
| LANG_CZECH
| LANG_POLISH
| LANG_DANISH
| LANG_PORTUGUESE
| LANG_DUTCH
| LANG_ROMANIAN
| LANG_ENGLISH
| LANG_RUSSIAN
| LANG_ESTONIAN
| LANG_SERBIAN
| LANG_FAEROESE
| LANG_SLOVAK
| LANG_FARSI
| LANG_SLOVENIAN
| LANG_FINNISH
| LANG_SPANISH
| LANG_FRENCH
| LANG_SWEDISH
| LANG_GERMAN
| LANG_THAI
| LANG_GREEK
| LANG_TURKISH
| LANG_HEBREW
| LANG_UKRANIAN
| LANG_HUNGARIAN
| LANG_VIETNAMESE
|
Remarks
The PRIMARYLANGID macro is defined as follows:
#define PRIMARYLANGID(lgid) ((WORD )(lgid) & 0x3ff)
See Also
EnumSystemLocales, LANGIDFROMLCID, MAKELANGID, SUBLANGID
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
TMS Scripter Studio Pro components for Delphi/C++Builder
More Online Helps
Win32 Multimedia Programmer's Reference (mmedia.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages
|