ITfInputProcessorProfiles::GetActiveLanguageProfile method (msctf.h)

Obtains the identifier of the currently active language profile for a specific text service.

Syntax

HRESULT GetActiveLanguageProfile(
  [in]  REFCLSID rclsid,
  [out] LANGID   *plangid,
  [out] GUID     *pguidProfile
);

Parameters

[in] rclsid

Contains the text service CLSID.

[out] plangid

Pointer to a LANGID value that receives the active profile language identifier.

[out] pguidProfile

Pointer to a GUID value that receives the language profile identifier. This is the value specified in ITfInputProcessorProfiles::AddLanguageProfile when the profile was added.

Return value

This method can return one of these values.

Value Description
S_OK
The method was successful.
S_FALSE
The text service identified by rclsid is not currently active. pguidProfile receives GUID_NULL.
E_FAIL
An unspecified error occurred.
E_INVALIDARG
One or more parameters are invalid.
E_OUTOFMEMORY
A memory allocation 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::AddLanguageProfile