Source code of Windows XP (NT5)
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.

46 lines
1.8 KiB

  1. /****************************************************************************\
  2. * *
  3. * PENWIN32.H - Pen Windows functions, types, and definitions *
  4. * *
  5. * Version 3.2 *
  6. * *
  7. * Copyright (c) 1992-1999 Microsoft Corp. All rights reserved. *
  8. * *
  9. *****************************************************************************/
  10. #ifndef _INC_PENWIN32
  11. #define _INC_PENWIN32
  12. #include <penwin.h>
  13. #ifdef __cplusplus
  14. extern "C"
  15. {
  16. #endif
  17. //
  18. // New API's supported for NT5.0
  19. //
  20. int WINAPI EnableLangModelHRC(HRC, BOOL);
  21. int WINAPI GetCostHRCRESULT(HRCRESULT);
  22. BOOL WINAPI IsStringSupportedHRC(HRC hrc, unsigned char *sz);
  23. int WINAPI SetRecogSpeedHRC(HRC hrc, int iSpeed);
  24. BOOL WINAPI SymbolToCharacterW(SYV *pSyv, int cSyv, WCHAR *wsz, int *pConv);
  25. int WINAPI GetBaselineHRCRESULT(HRCRESULT hrcresult, RECT *pRect, BOOL *pbBaselineValid, BOOL *pbMidlineValid);
  26. int WINAPI SetHwxFactoid(HRC hrc, WCHAR* pwcFactoid);
  27. BOOL WINAPI SetHwxFlags(HRC hrc, DWORD flags);
  28. // Extra user Dictionary API's
  29. int WINAPI AddWordsHWLW(HWL hwl, wchar_t *pwsz, UINT uType);
  30. HWL WINAPI CreateHWLW(HREC hrec, wchar_t * pwsz, UINT uType, DWORD dwReserved);
  31. // If the following API is called, the recognizer expects the RECOFLAG_WORDMODE
  32. // and the RECOFLAG_COERCE flags to be ON. Otherwise, ProcessHRC fails.
  33. BOOL WINAPI SetHwxCorrectionContext(HRC hrc, WCHAR *wszPrefix, WCHAR *wszSuffix);
  34. #ifdef __cplusplus
  35. };
  36. #endif
  37. #endif /* #ifndef _INC_PENWIN32 */