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.

84 lines
2.3 KiB

  1. /*************************************************
  2. * uimetool.h *
  3. * *
  4. * Copyright (C) 1995-1999 Microsoft Inc. *
  5. * *
  6. *************************************************/
  7. //
  8. // 1/17/96
  9. // @E01 Change for multi-threading
  10. // @E02 Change for multi-threading without extending function
  11. //
  12. #include <commctrl.h>
  13. //
  14. #define MAX_CHAR_NUM 1000
  15. #define SEGMENT_SIZE 60
  16. #define NULL_SEG 0xffff
  17. #define MAX_RADICAL 8
  18. #define ALLOCBLOCK 1000
  19. #define MAX_BYTE 4
  20. // Help ID declarations
  21. #define IDH_IME_NAME 3001
  22. #define IDH_TABLE_NAME 3002
  23. #define IDH_ROOT_NUM 3003
  24. #define IDH_IME_FILE_NAME 3004
  25. #define IDH_CANDBEEP_YES 3005
  26. #define IDH_CANDBEEP_NO 3006
  27. //
  28. #define SOURCE_IME_NAME _TEXT("MINIIME")
  29. #define LIBRARY_NAME _TEXT("MINIIME.TPL")
  30. #define HELP_FILE _TEXT("UIMETOOL.CHM")
  31. #define IME_NAME_LEN_TOOL 5
  32. #define TAB_NAME_LEN 13 //filename 8.3 + NULL
  33. #define KEY_NUM_STR_LEN 2
  34. #define END_PHRASE 0x8000
  35. #define NOT_END_PHRASE 0x7f
  36. #ifndef ARRAYSIZE
  37. #define ARRAYSIZE(a) (sizeof(a)/sizeof(a[0]))
  38. #endif
  39. //
  40. BOOL FAR PASCAL SetDialogProc( HWND, unsigned, WORD, LONG);
  41. void GetOpenFile(HWND);
  42. BOOL CheckInput(HWND);
  43. BOOL MakeNewIme(HWND);
  44. //unsigned _stdcall MakeNewImeThread(LPVOID voidparam); // <== @E01
  45. void MakeNewImeThread(LPVOID voidparam); // <== @E02
  46. BOOL is_DBCS(UINT);
  47. //-------------------------------------------------------------------------
  48. // Memory blobal variable declarations.
  49. //
  50. // Warning : iFirst_Seg & iNext_Seg store only SEGMENT number but address
  51. // for address can not mainten after GlobalRealloc
  52. //
  53. typedef struct{
  54. UINT iFirst_Seg;
  55. TCHAR szRadical[MAX_RADICAL];
  56. WORD wCode;
  57. } RADICALBUF, FAR *LPRADICALBUF;
  58. typedef struct STRUCT_PHRASE{
  59. UINT iNext_Seg;
  60. TCHAR szPhrase[SEGMENT_SIZE];
  61. } PHRASEBUF, FAR *LPPHRASEBUF;
  62. HANDLE hRadical;
  63. UINT nRadicalBuffsize;
  64. UINT iRadicalBuff;
  65. LPRADICALBUF lpRadical;
  66. HANDLE hPhrase;
  67. UINT nPhraseBuffsize;
  68. UINT iPhraseBuff;
  69. LPPHRASEBUF lpPhrase;