ITfThreadMgr2::Deactivate method (msctf.h)

Deactivates TSF for the calling thread.

Syntax

HRESULT Deactivate();

Return value

This method can return one of these values.

Value Description
S_OK
The method was successful.
E_UNEXPECTED
This method was called while the thread was activated or this call had no corresponding Activate call.

Remarks

Each call to this method must be matched with a previous call to Activate. This method must be called from the same thread that the corresponding Activate call was made from.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 [desktop apps | UWP apps]
Target Platform Windows
Header msctf.h

See also

ITfThreadMgr2