ITfInputProcessorProfiles::SetDefaultLanguageProfile method (msctf.h)

Sets the default profile for a specific language.

Syntax

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

Parameters

[in] langid

Contains a LANGID value that specifies which language to set the default profile for.

[in] rclsid

Contains the CLSID of the text service that will be the default for the language.

[in] guidProfiles

Contains a GUID value that identifies the language profile that will be the default.

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.

Requirements

Requirement Value
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