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.

60 lines
1.3 KiB

  1. #ifndef __INC_INKIO_H_
  2. #define __INC_INKIO_H_
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. typedef struct WritingArea_tag
  7. {
  8. RECT rect;
  9. GUIDE guide;
  10. // warning: both of the following cannot be nonzero
  11. unsigned int iMultInk; // ink scaling (0 means no scaling)
  12. unsigned int iDivInk; // ink scaling (0 means no scaling)
  13. } WritingArea;
  14. typedef struct {
  15. char *szOS;
  16. char *szSystemRoot;
  17. char *szUSERNAME;
  18. POINT SCREEN;
  19. BOOL bWordmode;
  20. BOOL bUseGuide;
  21. BOOL bCoerce;
  22. BOOL bNNonly;
  23. unsigned char *szWordlist; // NULL means not used
  24. char *szRecogDLLName;
  25. int cDLLSize;
  26. char *szDLLTime;
  27. WritingArea WA;
  28. WritingArea WAGMM;
  29. char *szLabel;
  30. char *szComment;
  31. GLYPH *glyph;
  32. GLYPH *glyphGMM;
  33. BOOL bUseFactoid;
  34. DWORD factoid;
  35. unsigned char *szPrefix;
  36. unsigned char *szSuffix;
  37. } InkData;
  38. extern const char *szWordmode;
  39. extern const char *szUseGuide;
  40. extern const char *szCoerce;
  41. extern const char *szNNonly;
  42. extern const char *szUseFactoid;
  43. extern const char *szFactoid;
  44. extern const char *szUseHWL;
  45. extern const char *szHWL;
  46. extern const char *szDll;
  47. extern char gszInkIoError[];
  48. int WriteInkFile(char *szFile, InkData *pInkData);
  49. int ReadInkFile(char *szFile, InkData *pInkData);
  50. void CleanupInkData(InkData *pInkData); // should only be called after a read
  51. #ifdef __cplusplus
  52. }
  53. #endif
  54. #endif