ITfThreadMgr2::Activate method

Activates TSF for the calling thread.

Syntax


HRESULT Activate(
  [out]  TfClientId *ptid
);

Parameters

ptid [out]

Pointer to a TfClientId value that receives a client identifier.

Return value

This method can return one of these values.

ValueDescription
S_OK

The method was successful.

E_INVALIDARG

ptid is invalid.

E_UNEXPECTED

This method was called while the thread was deactivated.

 

Remarks

This method can be called more than once from a thread, but each call must be matched with a corresponding call to Deactivate from the same thread.

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

 

 

Community Additions

ADD
Show:
© 2014 Microsoft