ITfInputProcessorProfiles::GetDefaultLanguageProfile method (msctf.h)

Obtains the default profile for a specific language.

Syntax

HRESULT GetDefaultLanguageProfile(
  [in]  LANGID  langid,
  [in]  REFGUID catid,
  [out] CLSID   *pclsid,
  [out] GUID    *pguidProfile
);

Parameters

[in] langid

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

[in] catid

Contains a GUID value that identifies the category that the text service is registered under. This can be a user-defined category or one of the predefined category values.

[out] pclsid

Pointer to a CLSID value that receives the class identifier of the default text service for the language.

[out] pguidProfile

Pointer to a GUID value that receives the identifier of the default profile for the language.

Return value

This method can return one of these values.

Value Description
S_OK
The method was successful.
S_FALSE
No default language profile was found for the specified language and category.
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

See also

ITfInputProcessorProfiles

Predefined Category Values