views:

188

answers:

2

Is it possible to switch input language for another application? Having application's process ID, thread ID, window handle etc.

+1  A: 

I think it's been asked before.

http://stackoverflow.com/questions/819483/is-there-a-winxp-winxp-embedded-api-to-change-locale-specifically-ime

Though it is Windows Embedded, the API is probably the same or similar.

http://msdn.microsoft.com/en-us/library/ms724947(VS.85).aspx

Leahn Novash
Sorry but the question is totally different. It shows how to change system-wide locale. I'm trying to switch input language for specific application only.
aloneguid
A: 

Maybe LoadKeyboardLayout and ActivateKeyboardLayout ?

cedrou
I know about these API, however I'm trying to change input language for _another_ application having HWND only.
aloneguid
You can use these functions in a DLL and inject this DLL in the process you want to modify.
cedrou