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.

79 lines
2.9 KiB

  1. #ifndef __INCLUDE_REGINFO__
  2. #define __INCLUDE_REGINFO__
  3. #define REGINFO_FATAL_ERROR -1
  4. #define REGINFO_FAILURE 0
  5. #define REGINFO_SUCCESS 1
  6. #define REGINFO_STORE_COMMON 1
  7. #define REGINFO_STORE_SEPARATOR 2
  8. #define REGINFO_STORE_COLLECTOR 4
  9. #define REGINFO_STORE_INSTALL 8
  10. #define REGINFO_STORE_ALL 7
  11. #include "question.h"
  12. #include "unicom.h"
  13. class CRegInfo
  14. {
  15. public:
  16. int Valid(); // Initialize and test
  17. void Clean(); // Clean up allocated objects
  18. BOOL Fetch(); // Load information from registry
  19. BOOL Store(int nMask = REGINFO_STORE_ALL); // Save information into registry
  20. HKEY m_hkRoot; // The main registry key
  21. QUESTION *m_pquest; // The question list
  22. USERNAME *m_pusers; // User names
  23. TCHAR m_szInstall[256]; // Root of install path
  24. TCHAR m_szLocal[256]; // Root directory of FFF files on local machine
  25. TCHAR m_szNetwork[256]; // Root directory of FFF files on network
  26. TCHAR m_szScript[256]; // Full path name of current script
  27. TCHAR m_szUser[256]; // Full path name of users.txt
  28. TCHAR m_szQuest[256]; // Full path name of quest.txt
  29. TCHAR m_szFont[32]; // Font face name
  30. TCHAR m_szLang[32]; // Language
  31. TCHAR m_szRecog[32]; // Name of recognizer
  32. TCHAR m_szStation[4]; // Collection station ID
  33. DWORD m_cpRecog; // Codepage recognizer uses
  34. DWORD m_cpIn; // Codepage to read in from FFF files
  35. DWORD m_cpOut; // Codepage to write out to FFF files
  36. DWORD m_cpKbd; // Codepage to read in from keyboard
  37. DWORD m_cpScr; // Codepage to write out to screen
  38. DWORD m_dwALC; // Call the recognizer with this mask
  39. DWORD m_cset; // Character set (e.g. HANGEUL_CHARSET, SHIFTJIS_CHARSET)
  40. DWORD m_cxMargin; // Empty space on left/right
  41. DWORD m_cyMargin; // Empty space on top/bottom
  42. DWORD m_cxGuides; // Number of horizontal guides
  43. DWORD m_cyGuides; // Number of vertical guides
  44. DWORD m_cxGap; // Size of horizontal gap
  45. DWORD m_cyGap; // Size of vertical gap
  46. DWORD m_cAllow; // Allow certain failures to be recognized
  47. DWORD m_cAlts; // Allow choice this deep in alternates list
  48. DWORD m_cInterval; // Screens before we make user wait
  49. DWORD m_cRetry; // Max retry count
  50. BOOL m_bRemove; // Remove spaces while separating?
  51. BOOL m_bContext; // Use context in while recognizing?
  52. BOOL m_bVerifySafe; // Is Verify 1 (safe) mode enabled?
  53. BOOL m_bVerifyUnsafe; // Is Verify 1 (unsafe) mode enabled?
  54. BOOL m_bVerify2; // Is Verify 2 mode enabled?
  55. BOOL m_bReconcile; // Is Reconcile mode enabled?
  56. BOOL m_bSpecial; // Is Special mode enabled?
  57. BOOL m_bBatch; // Is Batch mode enabled?
  58. BOOL m_bMidline; // Is there a midline?
  59. BOOL m_bBaseline; // Is there a baseline?
  60. BOOL m_bWrap; // Do word wrapping?
  61. public:
  62. CRegInfo() { m_hkRoot = (HKEY) NULL; m_pquest = (QUESTION *) NULL, m_pusers = (USERNAME *) NULL; }
  63. ~CRegInfo() { Clean(); }
  64. protected:
  65. void ReadUserList();
  66. void ReadQuestionList();
  67. };
  68. #endif//__INCLUDE__REGINFO__