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.

75 lines
2.6 KiB

  1. /*****************************************************************************\
  2. * *
  3. * penwoem.h - Pen Windows APIs into recognizer layer. *
  4. * Assumes windows.h and penwin.h have been previously included. *
  5. * *
  6. * Version 1.0 *
  7. * *
  8. * Copyright (c) 1992, Microsoft Corp. All rights reserved. *
  9. * *
  10. \*****************************************************************************/
  11. #ifndef _INC_PENWOEM /* prevent multiple includes */
  12. #define _INC_PENWOEM
  13. #ifndef RC_INVOKED
  14. #pragma pack(1)
  15. #endif /* RC_INVOKED */
  16. #ifdef __cplusplus
  17. extern "C" { /* Assume C declarations for C++ */
  18. #endif /* __cplusplus */
  19. typedef int (CALLBACK *LPFUNCRESULTS) (LPRCRESULT, REC);
  20. /* Initialization Functions */
  21. #define WCR_RECOGNAME 0
  22. #define WCR_QUERY 1
  23. #define WCR_CONFIGDIALOG 2
  24. #define WCR_DEFAULT 3
  25. #define WCR_RCCHANGE 4
  26. #define WCR_VERSION 5
  27. #define WCR_TRAIN 6
  28. #define WCR_TRAINSAVE 7
  29. #define WCR_TRAINMAX 8
  30. #define WCR_TRAINDIRTY 9
  31. #define WCR_TRAINCUSTOM 10
  32. #define WCR_QUERYLANGUAGE 11
  33. #define WCR_USERCHANGE 12
  34. #define WCR_PRIVATE 1024
  35. /* sub-function of WCR_USERCHANGE */
  36. #define CRUC_REMOVE 1
  37. /* Return values for WCR_TRAIN Function */
  38. #define TRAIN_NONE 0x0000
  39. #define TRAIN_DEFAULT 0x0001
  40. #define TRAIN_CUSTOM 0x0002
  41. #define TRAIN_BOTH (TRAIN_DEFAULT | TRAIN_CUSTOM)
  42. /* Control values for TRAINSAVE */
  43. #define TRAIN_SAVE 0 /* Save changes that have been made */
  44. #define TRAIN_REVERT 1 /* Discard changes that have been made */
  45. UINT WINAPI ConfigRecognizer(UINT, WPARAM, LPARAM);
  46. BOOL WINAPI InitRecognizer(LPRC);
  47. VOID WINAPI CloseRecognizer(VOID);
  48. /* Recognition Functions */
  49. REC WINAPI RecognizeInternal(LPRC, LPFUNCRESULTS);
  50. REC WINAPI RecognizeDataInternal(LPRC, HPENDATA, LPFUNCRESULTS);
  51. /* Training Functions */
  52. BOOL WINAPI TrainInkInternal(LPRC, HPENDATA, LPSYV);
  53. BOOL WINAPI TrainContextInternal(LPRCRESULT, LPSYE, int, LPSYC, int);
  54. #ifdef __cplusplus
  55. }
  56. #endif /* __cplusplus */
  57. #ifndef RC_INVOKED
  58. #pragma pack()
  59. #endif /* RC_INVOKED */
  60. #endif /* #define _INC_PENWOEM */