up

解决方案 »

  1.   

    HKEY_LOCAL_MACHINE \System\CurrentControlSet\control\keyboard layouts 下你就可以明白了,得到他的值,判断以下就知道了,
    中文输入法为俄e00000...
    Layout Text的值为“中文“
    自己在想想办法把
    ImmGetIMEFileName

      

  2.   

    可以根据输入法的HKL(Keybroad Layout Handle)判断,HKL其实是一个混合值,Loword是一个Language IDentifier,Hiword是一个Device Handle,比如如果要检查是否是Chinese-Simplified,只要检查HKL的LOWORD是否为0x804就可以了。
      

  3.   

    HKL GetKeyboardLayout(
      0//DWORD idThread  // thread identifier
    );
    得到当前输入法的HKL
      

  4.   

    to iicup(双杯献酒)
    你竟然抢我的台词!
      

  5.   

    UINT GetKeyboardLayoutList(
      int nBuff,       // size of array
      HKL FAR *lpList  // array of input locale identifiers
    );可以取得本机所有的HKL值,不过查
    HKEY_CURRENT_USER\keyboard layout\preload
    得到的结果是相同的。