Since the instance of ITfThreadMgr created by CoCreateInstance only for Apartment Thread, you should use TF_CreateThreadMgr to create a threadMgr that can be used in both Apartment Thread and MultiThreaded Thread.
https://learn.microsoft.com/en-us/windows/win32/api/msctf/nf-msctf-tf_createthreadmgr
[TSF-Application] How to use Text Service Framework on Multithreaded Apartment thread
Windmill_City
201
Reputation points
Trying to Activate the UI-Thread which is in Multithreaded Apartment, but it seems the call to ITfThreadMgr->Activate has no effect.
Accepted answer
-
Windmill_City 201 Reputation points
2021-01-16T10:52:39.887+00:00