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.

209 lines
5.8 KiB

  1. /*************************************************
  2. * abcbx.h *
  3. * *
  4. * Copyright (C) 1995-1999 Microsoft Inc. *
  5. * *
  6. *************************************************/
  7. #define ESC 1
  8. #define SPACE 2
  9. #define OTHER 3
  10. #define BXMA 4
  11. #define BX_SELECT 5
  12. #define BX_RESULT_POS 14
  13. #define BX_CHOICE 6
  14. RECT rectchar;
  15. WORD bxtable_ndx[]={0,0xc3a,0x1143,0x2493,
  16. 0x3695,0x3af0,0x3ed1,0x4aec,0x5490}; //length for each bx
  17. WORD search_pointer=0;
  18. BYTE current_bx_code_long=0;
  19. WORD key_bx_code_long=0;
  20. WORD current_part_length=0;
  21. BYTE bx_help_flag=0;
  22. BYTE in_mem_part=0;
  23. BYTE bx_inpt_on=0;
  24. BYTE bx_allow=1;
  25. BYTE inpt_bx_bf[40];
  26. BYTE key_bx_code[40];
  27. BYTE current_bx_code[40];
  28. BYTE bx_help_disp_bf[40];
  29. BYTE *lib_p;
  30. BYTE *out_p;
  31. //copy from abcw2.h and add extern for every global variable.
  32. extern CHAR SKLayoutS[NumsSK];
  33. extern CHAR SKLayout[NumsSK][48*2];
  34. extern CHAR PcKb[48*2],SdaKb[48*2];
  35. extern CHAR SPcKb[48*2],SSdaKb[48*2];
  36. extern LPIMEL lpImeL;
  37. extern IMEG sImeG ;
  38. #define WM_NEW_DEF_CODE 1993+0x400 //1993.4.19
  39. #define WM_NEW_DEF_RESTORE 1993+0x401 //1993.4.19
  40. extern HIMC ghIMC;
  41. extern LPINPUTCONTEXT glpIMC;
  42. extern LPPRIVCONTEXT glpIMCP;
  43. extern int wait_flag , waitzl_flag;
  44. extern int TypeOfOutMsg;
  45. extern int biaodian_len;
  46. extern BYTE I_U_Flag;
  47. extern struct INPUT_TISHI prompt[1];
  48. extern struct INPT_BF in;
  49. extern struct W_SLBL wp;
  50. extern struct ATTR msx_area[120];
  51. extern struct INDEX ndx;
  52. extern struct INDEX kzk_ndx;
  53. extern struct TBF FAR *cisu;
  54. extern struct PD_TAB pindu;
  55. extern struct FMT now;
  56. extern struct T_REM tmmr;
  57. extern int form[];
  58. extern BYTE spbx_tab[((87-15)*94+15)/16*16+16];
  59. extern BYTE logging_stack[0x400];
  60. extern WORD logging_stack_size;
  61. extern int word_long;
  62. extern int unit_length;
  63. extern int disp_tail;
  64. extern int disp_head;
  65. extern int group_no;
  66. extern int current_no;
  67. extern unsigned char space_char[];
  68. extern BYTE out_svw[400];
  69. extern unsigned char group_counter[];
  70. extern int input_cur;
  71. extern int new_no;
  72. extern int jlxw_mode;
  73. extern int jiyi_mode;
  74. extern int result_area_pointer;
  75. extern BYTE result_area[40];
  76. extern BYTE out_result_area[40];
  77. extern WORD out_bfb[40];
  78. extern int out_pointer;
  79. extern int now_cs;
  80. extern int now_cs_dot;
  81. extern unsigned char biaodian_table[];
  82. extern unsigned char cc_biaodian[];
  83. extern int biaodian_pos;
  84. extern WORD biaodian_value;
  85. extern BYTE yinhao_flag;
  86. extern BYTE step_mode;
  87. extern BYTE bdd_flag;
  88. extern BOOL IfTopMost;
  89. extern BYTE word_back_flag;
  90. extern BYTE msg_type;
  91. extern BYTE temp_rem_area[512];
  92. extern BYTE rem_area[512];
  93. extern BYTE out_length;
  94. extern BYTE last_out_length;
  95. extern BYTE cap_mode;
  96. extern WORD mulu_record_length;
  97. extern WORD data_record_length;
  98. extern WORD mulu_true_length;
  99. extern WORD data_start;
  100. extern WORD mulu_max_length;
  101. extern BYTE user_word_max_length;
  102. extern OFSTRUCT reopen;
  103. extern HWND active_win_keep;
  104. extern BYTE d_yinhao_flag,book_name,book_name_sub;
  105. extern BYTE SdaPromptOpen,DefNewNow;
  106. extern FARPROC _hh1,_hh2;
  107. extern HANDLE hInst;
  108. extern HANDLE cisu_hd;
  109. extern HCURSOR hCursor;
  110. extern FARPROC FAR *hh1,*hh2;
  111. extern FARPROC lpFunc,lpFunc2;
  112. extern HANDLE mdl;
  113. extern BYTE opt_flag;
  114. extern BYTE kb_buffer[35];
  115. extern int OldCaps;
  116. extern BYTE in_buffer[1];
  117. extern int n,end_flg,CharHi,CharWi;
  118. extern HFONT hFont;
  119. extern HFONT hOldFont;
  120. extern HFONT hSFont;
  121. extern HPEN hPen;
  122. extern BYTE V_Flag;
  123. extern OFSTRUCT ofstruct;
  124. extern HDC hDC;
  125. extern HDC hMemoryDC;
  126. extern HBITMAP cur_h;
  127. extern int count2;
  128. extern int pass_word;
  129. extern HWND NowFocus,OptFocus;
  130. extern BOOL cur_flag,op_flag;
  131. extern WORD old_curx,cur_hibit,cur_start_ps,cur_start_count;
  132. extern HWND hWnd,act_focus;
  133. extern int input_count;
  134. extern int kb_mode,kb_flag;
  135. extern int local_focus;
  136. extern int timer_counter;
  137. extern int msg_count;
  138. extern BYTE msg_bf[50];
  139. extern TimerCounter;
  140. extern KeyBoardState;
  141. extern SdaInst;
  142. extern HWND Return;
  143. extern HWND act_win;
  144. extern HANDLE Hdopt;
  145. extern unsigned char jiyi[];
  146. extern WORD sda_trans[5];
  147. extern HWND hInputWnd;
  148. extern HWND hABCWnd;
  149. extern char ExeCmdLine[];
  150. extern BYTE UpdateFlag;
  151. extern char jiyi_wenjian_cuo[];
  152. extern BYTE InputBuffer[43];
  153. extern WORD SoftKeyNum;
  154. extern char tmmr_rem[MAX_PATH];
  155. extern char user_lib[MAX_PATH];
  156. extern HANDLE hAccTable;
  157. extern HANDLE hImeL;
  158. extern LPIMEL lpImeL;
  159. extern int MoveFlag;
  160. extern POINT pot;
  161. extern HWND hSetOp,NewWordWin;
  162. extern char *szMsgStr[];
  163. extern BYTE Sd_Open_flag;
  164. extern BYTE kb_mode_save;
  165. extern char TMMR_OPEN_WRONG[];
  166. extern BYTE cpjy,bxsr,qj,bdzh;
  167. extern OFSTRUCT ofs;
  168. extern struct SLBL sb;
  169. extern struct N_SLBL neg;
  170. extern BYTE slbl_tab[];
  171. extern OFSTRUCT openbuf;
  172. extern OFSTRUCT openbuf_kzk,open_user,open_tmmr;
  173. extern BYTE buffer[30];
  174. extern BYTE cmp_head,cmp_state,cmp_bx,by_cchar_flag;
  175. extern WORD cmp_yj,cmp_cisu;
  176. extern LONG r_addr;
  177. extern WORD out_svw_cnt,msx_area_cnt;
  178. extern WORD search_start,search_end,kzk_search_start,kzk_search_end;
  179. extern WORD item_length,kzk_item_length,last_item_name,item_addr,slib_addr;
  180. extern BYTE word_lib_state;
  181. extern WORD lib_w[0xa00];
  182. extern WORD kzk_lib_w[0x400];
  183. extern BYTE auto_mode,word_source,xs_flag,sfx_attr,jiyi_pindu,system_info;
  184. extern BYTE stack1_move_counter;
  185. extern WORD extb_ps;
  186. extern char *std_dct;
  187. extern char *user_dct;
  188. extern BYTE last_flag;
  189. extern LONG last_start_ps;
  190. extern WORD last_size;
  191. extern BYTE stack1_move_counter;
  192. extern char fk_tab[];
  193. extern WORD sfx_table[];
  194. extern WORD sfx_table_size;
  195. int FAR PASCAL sda_proc(WORD, LPWORD, BYTE, HIMC);
  196. int FAR PASCAL tran_data(int, HIMC, BYTE);