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.

49 lines
1.5 KiB

  1. /****************************************************************************
  2. HANJA.H
  3. Owner: cslim
  4. Copyright (c) 1997-1999 Microsoft Corporation
  5. Hanja conversion and dictionary lookup functions. Dictionary index is
  6. stored as globally shared memory.
  7. History:
  8. 14-JUL-1999 cslim Copied from IME98 source tree
  9. *****************************************************************************/
  10. #if !defined (_HANJA_H__INCLUDED_)
  11. #define _HANJA_H__INCLUDED_
  12. #include "LexHeader.h"
  13. enum HANJA_CAT { HANJA_K0, HANJA_K1, HANJA_K2 };
  14. typedef
  15. struct tagHANJA_CAND_STRING
  16. {
  17. WCHAR wchHanja; // Hanja char
  18. LPWSTR wzMeaning; // Hanja meaning
  19. BYTE bHanjaCat; // Hanja category
  20. } HANJA_CAND_STRING;
  21. typedef
  22. struct tagHANJA_CAND_STRING_LIST
  23. {
  24. LPWSTR pwsz; // Null terminated string list (Allocated by GetConversionList)
  25. HANJA_CAND_STRING *pHanjaString; // (Allocated by GetConversionList)
  26. DWORD csz; // Count of wsz's in pwsz
  27. DWORD cszAlloc; // Number of entries allocated in pHanjaString (set by GetConversionList)
  28. DWORD cchMac; // Current chars used in pwsz (incl all trailing nulls)
  29. DWORD cchAlloc; // Size in chars of pwsz (Set by GetConversionList)
  30. } HANJA_CAND_STRING_LIST;
  31. extern BOOL EnsureHanjaLexLoaded();
  32. extern BOOL CloseLex();
  33. extern BOOL GetMeaningAndProunc(WCHAR wch, LPWSTR lpwstrTip, INT cchMax);
  34. extern BOOL GetConversionList(WCHAR wcReading, HANJA_CAND_STRING_LIST *pCandList);
  35. #endif // !defined (_HANJA_H__INCLUDED_)