Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

125 lines
2.9 KiB

  1. /*************************************************
  2. * eng.h *
  3. * *
  4. * Copyright (C) 1995-1999 Microsoft Inc. *
  5. * *
  6. *************************************************/
  7. // IME designer can change this file according to each IME
  8. //#define MAX_LEN 52
  9. #define BOX_UI 0
  10. #define LIN_UI 1
  11. #define MaxTabNum 40
  12. #define MAXSTRLEN 128
  13. #define MAXCAND 256
  14. #define IME_MAXCAND 10
  15. #define MAXCODE 12
  16. #define MAXINPUTWORD 40
  17. #define MAXNUMBER_EMB 1222 // there are at most 1222 EUDC chars. 1000
  18. typedef struct tagCOMPPROC {
  19. int dwUDicQStartPos;
  20. int dwUDicQEndPos;
  21. int dwUDicQCStartPos;
  22. int dwUDicQCEndPos;
  23. int dBDicStartPos;
  24. int dBDicEndPos;
  25. int dBDicCStartPos;
  26. int dBDicCEndPos;
  27. int dBDicMCSPos;
  28. } COMPPROC ;
  29. typedef struct tagCOMPCONTEXT {
  30. TCHAR szInBuffer[MAXCODE];
  31. TCHAR szSelectBuffer[3000];
  32. BYTE PromptCnt;
  33. BYTE ResultStrCnt;
  34. TCHAR CKBBuf[130];
  35. BYTE LxStrCnt;
  36. TCHAR szLxBuffer[130];
  37. BYTE Candi_Cnt;
  38. BYTE Candi_Pos[IME_MAXCAND];
  39. } COMPCONTEXT;
  40. typedef struct tagCOMPSTATUS {
  41. DWORD dwPPTLX;
  42. DWORD dwPPTS;
  43. DWORD dwPPTBD;
  44. DWORD dwPPTFH;
  45. DWORD dwSTLX;
  46. DWORD dwSTMULCODE;
  47. DWORD dwPPCZ;
  48. DWORD dwPPCTS;
  49. DWORD OnLineCreWord;
  50. DWORD dwInvalid ;
  51. DWORD dwTraceCusr;
  52. DWORD dwSpace;
  53. DWORD dwEnter;
  54. } COMPSTATUS;
  55. typedef struct tagMB_Head {
  56. DWORD Q_offset;
  57. DWORD W_offset[48];
  58. }MB_Head;
  59. typedef struct tagEMB_Head {
  60. TCHAR W_Code[MAXCODE];
  61. TCHAR C_Char[MAXINPUTWORD];
  62. }EMB_Head;
  63. //EMB_Head *LpEMB_Head;
  64. typedef struct tagGOLBVAC {
  65. BYTE ST_MUL_Cnt;
  66. BYTE Page_Num;
  67. BYTE Cur_MB;
  68. BYTE EMB_Exist;
  69. WORD EMB_Count;
  70. int SBufPos;
  71. DWORD Area_V_Lenth;
  72. } GLOBVAC ;
  73. typedef struct PRIVATEAREA {
  74. COMPPROC Comp_Proc;
  75. COMPCONTEXT Comp_Context;
  76. COMPSTATUS Comp_Status;
  77. GLOBVAC GlobVac;
  78. HANDLE hMapMB;
  79. HANDLE hMapEMB;
  80. HANDLE hMbFile;
  81. HANDLE hEmbFile;
  82. } PRIVATEAREA;
  83. typedef PRIVATEAREA *LPPRIVATEAREA;
  84. LPPRIVATEAREA lpPrivateArea;
  85. typedef struct tagCONVERLIST {
  86. TCHAR szInBuffer[MAXCODE];
  87. TCHAR szSelectBuffer[5000];
  88. BYTE Candi_Cnt;
  89. BYTE Candi_Pos[100];
  90. } CONVERLIST;
  91. CONVERLIST ConverList;
  92. typedef struct tagHMapStruc {
  93. TCHAR MB_Name[40];
  94. int RefCnt;
  95. TCHAR MB_Obj[40];
  96. TCHAR EMB_Obj[40];
  97. //HANDLE hMapMB;
  98. //HANDLE hMapEMB;
  99. DWORD EMB_ID;
  100. HANDLE hEmbFile;
  101. HANDLE hMbFile;
  102. } HMapStruc;