ITfInputProcessorProfiles::EnableLanguageProfile method (msctf.h)

Enables or disables a language profile for the current user.

Syntax

HRESULT EnableLanguageProfile(
  [in] REFCLSID rclsid,
  [in] LANGID   langid,
  [in] REFGUID  guidProfile,
  [in] BOOL     fEnable
);

Parameters

[in] rclsid

Contains the CLSID of the text service of the profile to be enabled or disabled.

[in] langid

Contains a LANGID value that specifies the language of the profile to be enabled or disabled.

[in] guidProfile

Contains a GUID value that identifies the profile to be enabled or disabled.

[in] fEnable

Contains a BOOL value that specifies if the profile will be enabled or disabled. If this contains a nonzero value, the profile will be enabled. If this contains zero, the profile will be disabled.

Return value

This method can return one of these values.

Value Description
S_OK
The method was successful.
E_FAIL
An unspecified error occurred.

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

See also

ITfInputProcessorProfiles

ITfInputProcessorProfiles::EnableLanguageProfileByDefault