home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1998 May / Pcwk5b98.iso / Borland / Cplus45 / BC45 / INC.PAK / PENWOEM.H < prev    next >
Text File  |  1995-08-29  |  3KB  |  87 lines

  1. /*****************************************************************************\
  2. *                                                                             *
  3. * penwoem.h -   Pen Windows APIs into recognizer layer.                       *
  4. *                                                                             *
  5. \*****************************************************************************/
  6.  
  7. /*
  8.  *      C/C++ Run Time Library - Version 6.5
  9.  *
  10.  *      Copyright (c) 1987, 1994 by Borland International
  11.  *      All Rights Reserved.
  12.  *
  13.  */
  14.  
  15. #ifndef __PENWOEM_H     /* prevent multiple includes */
  16. #define __PENWOEM_H
  17.  
  18. #ifndef __WINDOWS_H
  19. #include <windows.h>    /* <windows.h> must be included */
  20. #endif  /* __WINDOWS_H */
  21.  
  22. #ifndef __PENWIN_H
  23. #include <penwin.h>     /* <penwin.h> must be included */
  24. #endif  /* __PENWIN_H */
  25.  
  26. #ifndef RC_INVOKED
  27. #pragma option -a-      /* Assume byte packing throughout */
  28. #endif  /* RC_INVOKED */
  29.  
  30. #ifdef __cplusplus
  31. extern "C" {            /* Assume C declarations for C++ */
  32. #endif  /* __cplusplus */
  33.  
  34. typedef int (CALLBACK *LPFUNCRESULTS) (LPRCRESULT, REC);
  35.  
  36. /* Initialization Functions */
  37.  
  38. #define WCR_RECOGNAME          0
  39. #define WCR_QUERY              1
  40. #define WCR_CONFIGDIALOG       2
  41. #define WCR_DEFAULT            3
  42. #define WCR_RCCHANGE           4
  43. #define WCR_VERSION            5
  44. #define WCR_TRAIN              6
  45. #define WCR_TRAINSAVE          7
  46. #define WCR_TRAINMAX           8
  47. #define WCR_TRAINDIRTY         9
  48. #define WCR_TRAINCUSTOM        10
  49. #define WCR_QUERYLANGUAGE      11
  50. #define WCR_USERCHANGE         12
  51. #define WCR_PRIVATE            1024
  52.  
  53. /* sub-function of WCR_USERCHANGE */
  54. #define CRUC_REMOVE            1
  55.  
  56. /* Return values for WCR_TRAIN Function */
  57. #define TRAIN_NONE             0x0000
  58. #define TRAIN_DEFAULT          0x0001
  59. #define TRAIN_CUSTOM           0x0002
  60. #define TRAIN_BOTH             (TRAIN_DEFAULT | TRAIN_CUSTOM)
  61.  
  62. /* Control values for TRAINSAVE */
  63. #define TRAIN_SAVE             0  /* Save changes that have been made */
  64. #define TRAIN_REVERT           1  /* Discard changes that have been made */
  65.  
  66. UINT WINAPI ConfigRecognizer(UINT, WPARAM, LPARAM);
  67. BOOL WINAPI InitRecognizer(LPRC);
  68. VOID WINAPI CloseRecognizer(VOID);
  69.  
  70. /* Recognition Functions */
  71. REC  WINAPI RecognizeInternal(LPRC, LPFUNCRESULTS);
  72. REC  WINAPI RecognizeDataInternal(LPRC, HPENDATA, LPFUNCRESULTS);
  73.  
  74. /* Training Functions */
  75. BOOL WINAPI TrainInkInternal(LPRC, HPENDATA, LPSYV);
  76. BOOL WINAPI TrainContextInternal(LPRCRESULT, LPSYE, int, LPSYC, int);
  77.  
  78. #ifdef __cplusplus
  79. }                       /* End of extern "C" { */
  80. #endif  /* __cplusplus */
  81.  
  82. #ifndef RC_INVOKED
  83. #pragma option -a.      /* Revert to default packing */
  84. #endif  /* RC_INVOKED */
  85.  
  86. #endif  /* __PENWOEM_H */
  87.