refactor: refactor Win32 SetInputLanguage method