Platform SDK: Active Directory, ADSI, and Directory Services

IDsDisplaySpecifier::SetLanguageID

The IDsDisplaySpecifier::SetLanguageID interface allows the caller to change the locale to a specified language.

HRESULT SetLanguageID(
  LANGID langid
);

Parameters

langid
[in] Language identifier to be used for look up in display specifier. If this value is zero, this method calls the GetUserDefaultUILanguage function to retrieve the current user language identifier and set the locale accordingly.

Return Values

The method returns an HRESULT value.

Remarks

By default, display specifiers are localized in the process locale that was read from GetLocale during object creation. This call allows the caller to change the locale.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Header: Declared in Dsclient.h.
  Library: Included as a resource in Dsuiext.dll.

See Also

Active Directory Display Interfaces, GetUserDefaultUILanguage, IDsDisplaySpecifier