ITfLanguageProfileNotifySink::OnLanguageChange method (msctf.h)

Called when the language profile is about to change.


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


[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
The method was successful.


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