Directory Services


The IDsDisplaySpecifier::SetLanguageID method changes the locale used by the IDsDisplaySpecifier object to a specified language.

HRESULT SetLanguageID( 
  LANGID langid


[in] Contains the language identifier used by the IDsDisplaySpecifier object. If this parameter is zero, this method calls the GetUserDefaultUILanguage function to retrieve the current user language identifier and uses that locale.

Return Values

This method always returns S_OK.


During object creation, the IDsDisplaySpecifier object obtains the locale by calling GetUserDefaultUILanguage. This method enables the object user to change the locale used with the display specifiers.


Client: Included in Windows XP and Windows 2000 Professional.
Server: Included in Windows Server 2003 and Windows 2000 Server.
Header: Declared in Dsclient.h.

See Also

GetUserDefaultUILanguage, IDsDisplaySpecifier, Active Directory Display Interfaces