c++ - Is there a WinXP/WinXP Embedded API to change Locale (specifically, IME)? -


I'm looking for an API on WinXP to switch between IMEs installed.

In the scenario, be able to plug in a language keyboard (Spanish) and change the IME by clicking on a UI button (name is Spanish)

For example, I plug in and click on the UI button called Spanish. It should internally convert IME into Spanish, which is already installed

thanks

I was trying to change Lochel / IME (which comes under the locale). I found that there is an API called 'SystemParametersInfo' which allows us to create settings at the system level In my case, I had to go to Control Panel> Regional Settings> and then switch between locale installed under the Languages ​​tab Had it This program can eventually be achieved as shown in the code:

  #include "stdafx.h" #include "windows.h" int _tmain (int arguments, _TCHAR * argv []) { HKL HLangId = 0; Bull is fine; DWORD error code; ErrorCode = GetLastError (); IsFine = SystemParametersInfo (SPI_GETDEFAULTINPUTLANG, 0, and HALIGID, 0); ErrorCode = GetLastError (); HKL Spaniel Language = (HKL) (0x040a0c0a); IsFine = SystemParametersInfo (SPI_SETDEFAULTINPUTLANG, 0, and Spanish language, 0); ErrorCode = GetLastError (); Return 0;  

}


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -