Platform SDK: International Features

IsValidLanguageGroup

The IsValidLanguageGroup function applies a validity test to a language-group identifier. Currently, the function tests whether a language group identifier is installed or supported on the calling system.

BOOL IsValidLanguageGroup(
  LGRPID LanguageGroup,     // language-group identifier
  DWORD dwFlags             // validity test 
);

Parameters

LanguageGroup
[in] Language-group identifier to be validated. This can be one of the following values.

LGRPID_WESTERN_EUROPE
LGRPID_CENTRAL_EUROPE
LGRPID_BALTIC
LGRPID_GREEK
LGRPID_CYRILLIC
LGRPID_TURKISH
LGRPID_JAPANESE
LGRPID_KOREAN
LGRPID_TRADITIONAL_CHINESE
LGRPID_SIMPLIFIED_CHINESE
LGRPID_THAI
LGRPID_HEBREW
LGRPID_ARABIC
LGRPID_VIETNAMESE
LGRPID_INDIC
LGRPID_GEORGIAN
LGRPID_ARMENIAN

dwFlags
[in] Specifies the validity test to apply to the language-group identifier. This can be one of the following values.
Value Meaning
LGRPID_INSTALLED Tests whether the language-group identifier is both supported and installed.
LGRPID_SUPPORTED Tests whether the language-group identifier is supported.

Return Value

If the language-group identifier passes the specified validity test, the return value is TRUE.

If the language-group identifier does not pass the specified validity test, the return value is FALSE.

Remarks

If the LGRPID_INSTALLED flag is specified and this function returns TRUE, the language-group identifier is both supported and installed on the system.

If the LGRPID_SUPPORTED flag is specified and this function returns TRUE, the language-group identifier is supported in the release, but not necessarily installed on the system.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 98.
  Header: Declared in Winnls.h; include Windows.h.
  Library: Use Kernel32.lib.

See Also

National Language Support Overview, National Language Support Functions, EnumSystemLanguageGroups, EnumLanguageGroupLocales