Skip to main content
ITfThreadMgr2::Deactivate method

Deactivates TSF for the calling thread.

Syntax


HRESULT Deactivate();

Parameters

This method has no parameters.

Return value

This method can return one of these values.

ValueDescription
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

Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Header

Msctf.h

IDL

Msctf.idl

See also

ITfThreadMgr2