I've implemented class that inherits ITfLanguageProfileNotifySink interface. It's working, I can get event when language changes, but it's only when my app is focused.
What should I do to detect language changes in my app when it's not focused?
I've implemented class that inherits ITfLanguageProfileNotifySink interface. It's working, I can get event when language changes, but it's only when my app is focused.
What should I do to detect language changes in my app when it's not focused?
ITfLanguageProfileNotifySink
is the interface you want, but you need to implement it in your text service DLL, rather than in a core application.You will need to implement a text service DLL in any case if you want to interact with the text in a document, as TSF interfaces don't have proxies & stubs, and can't run cross-process.