How to change input method Language by invoke code

My organization can not use ChangeLanguage Package,Can I use Invoke code to Achieve this feature, I try VBnet,C#,But invoke code doesn’t seem to work with Windows API, Send hokey or click to Change it is unstable。