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.

37 lines
1.2 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. #define CAND_PAGE_SIZE 9
  14. #define MAX_CANDSTR 128 // !!! max num of candidate !!!
  15. // currently '��' has total 103 candidate str
  16. PUBLIC UINT vuNumofK0, vuNumofK1;
  17. PUBLIC WCHAR vwcHangul;
  18. PUBLIC BOOL EnsureHanjaLexLoaded();
  19. PUBLIC BOOL CloseLex();
  20. PUBLIC BOOL GenerateHanjaCandList(PCIMECtx pImeCtx, WCHAR wcHangul = 0);
  21. PUBLIC DWORD GetConversionList(WCHAR wcReading, LPCANDIDATELIST lpCandList, DWORD dwBufLen);
  22. __inline UINT GetNumOfK0() { return vuNumofK0; }
  23. __inline UINT GetNumOfK1() { return vuNumofK1; }
  24. //inline LPWSTR GetHanjaMeaning(int i) { return vprwszHanjaMeaning[i]; }
  25. __inline WCHAR GetCurrentHangulOfHanja() { return vwcHangul; }
  26. #endif // !defined (_HANJA_H__INCLUDED_)