how to know a input is ime or tsf?

932 Views Asked by At

i use win7 64bit, local language is chinese.

some input use ime, and some input use tsf.

i want use LoadKeyboardLayout() to active a special keyboard layout sometimes, but when call GetKeyboardLayoutName(), the tsf input and default ime return same keyboard layout "0x00000804"。

so i can't active tsf input use LoadKeyboardLayout(), i know how to active tsf input through ITfInputProcessorProfiles interface.

but how to get current input is ime or tsf?

thanks.

1

There are 1 best solutions below

0
On

When the language changes, TSF will send notifications via ITfLanguageProfileNotifySink, when the IME changes, TSF will send notifications via ItfActiveLanguageProfileNotifySink.