ITfInputProcessorProfiles::ActivateLanguageProfile method (msctf.h)

Sets the active text service for a specific language.

Syntax

HRESULT ActivateLanguageProfile(
  [in] REFCLSID rclsid,
  [in] LANGID   langid,
  [in] REFGUID  guidProfiles
);

Parameters

[in] rclsid

Contains the CLSID of the text service to make active.

[in] langid

Contains a LANGID value that specifies which language to set the default profile for. This method fails if this is not the currently active language.

[in] guidProfiles

Contains a GUID value that identifies the language profile to make active.

Return value

This method can return one of these values.

Value Description
S_OK
The method was successful.
E_FAIL
An unspecified error occurred.
E_INVALIDARG
One or more parameters are invalid.
E_OUTOFMEMORY
A memory allocation failure occurred.
E_UNEXPECTED
No thread manager has been created for the calling thread.

Requirements

   
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header msctf.h
DLL Msctf.dll
Redistributable TSF 1.0 on Windows 2000 Professional