ITfLanguageProfileNotifySink::OnLanguageChange method (msctf.h)

Called when the language profile is about to change.

Syntax

HRESULT OnLanguageChange(
  [in]  LANGID langid,
  [out] BOOL   *pfAccept
);

Parameters

[in] langid

Contains a LANGID value the identifies the new language profile.

[out] pfAccept

Pointer to a BOOL value that receives a flag that permits or prevents the language profile change. Receives zero to prevent the language profile change or nonzero to permit the language profile change.

Return value

This method can return one of these values.

Value Description
S_OK
The method was successful.

Requirements

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