Process.c
上传用户:shdz666
上传日期:2007-01-03
资源大小:566k
文件大小:4k
源码类别:

输入法编程

开发平台:

Visual C++

  1. /*
  2.  * Copyright (C) 1999.4  Li ZhenChun
  3.  *
  4.  * This program is free software; you can redistribute it and/or modify
  5.  * it under the terms of the GNU General Public License as published by
  6.  * the Free Software Foundation; either version 2 of the License; or
  7.  * (at your option) any later version.
  8.  *
  9.  * This program is distributed in the hope that is will be useful, but
  10.  * WITHOUT ANY WARRANTY; without even the implied warranty of 
  11.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12.  * General Public License for more details.
  13.  *
  14.  * You should have received a copy of the GNU General Public License
  15.  * along with this program; if not, write to the Free Software
  16.  * Foundation, Inc., 675 Mass Ave, Cambridge, M A 02139, USA.
  17.  *
  18.  * Author: Li ZhenChun  email: zhchli@163.net or zhchli@126.com
  19.  * 
  20.  */
  21. /**********************************************************************/
  22. /*                                                                    */
  23. /* These tables are for ImeProcessKey(). And IMEProcessKey function   */
  24. /* refer this table and deside the VKey is needed for FAKEIME or not. */
  25. /*                                                                    */
  26. /**********************************************************************/
  27. #include "windows.h"
  28. BYTE bNoComp[] = {      0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,        // 00-0F
  29.                         0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,        // 10-1F
  30.                         0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,        // 20-2F
  31.                         1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,        // 30-3F
  32.                         0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,        // 40-4F
  33.                         1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,        // 50-5F
  34.                         0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,        // 60-6F
  35.                         0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,        // 70-7F
  36.                         0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,        // 80-8F
  37.                         0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,        // 90-9F
  38.                         0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,        // A0-AF
  39.                         0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,        // B0-BF
  40.                         1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,        // C0-CF
  41.                         0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,0,        // D0-DF
  42.                         0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,        // E0-EF
  43.                         0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};       // F0-FF
  44. BYTE bComp[] = {        0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,        // 00-0F
  45.                         0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,        // 10-1F
  46.                         1,0,0,1,1,1,1,1,1,0,0,0,0,0,1,0,        // 20-2F
  47.                         1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,        // 30-3F
  48.                         0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,        // 40-4F
  49.                         1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,        // 50-5F
  50.                         0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,        // 60-6F
  51.                         0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,        // 70-7F
  52.                         0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,        // 80-8F
  53.                         0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,        // 90-9F
  54.                         0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,        // A0-AF
  55.                         0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,        // B0-BF
  56.                         1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,        // C0-CF
  57.                         0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,0,        // D0-DF
  58.                         0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,        // E0-EF
  59.                         0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};       // F0-FF