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.

110 lines
3.7 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1991 - 1998.
  5. //
  6. // File: CIDEBUG.HXX
  7. //
  8. // Contents: Content Index Debugging Help
  9. //
  10. //
  11. // History: 02-Mar-91 BartoszM Created.
  12. //
  13. //----------------------------------------------------------------------------
  14. #pragma once
  15. #if CIDBG == 1
  16. DECLARE_DEBUG(ci);
  17. # define ciDebugOut( x ) ciInlineDebugOut x
  18. # define ciAssert(e) Win4Assert(e)
  19. #else // CIDBG == 0
  20. # define ciDebugOut( x )
  21. # define ciAssert(e)
  22. #endif // CIDBG == 1
  23. // Debugging Flags
  24. #define DEB_FRESH (1 << 16) // fresh list
  25. #define DEB_PCOMP (1 << 17) // pcomp
  26. #define DEB_PDIR (1 << 18) // persistent index directory
  27. #define DEB_CAT (1 << 19) // catalog
  28. #define DEB_BITSTM (1 << 20) // bit stream
  29. #define DEB_PENDING (1 << 21) // Pending updates & merge activity
  30. #define DEB_KEYLIST (1 << 22) // Keylist
  31. #define DEB_DOCSUM (1 << 22) // Abstract generation
  32. #define DEB_WORDS (1 << 23) // Wordbreaking, stemming, etc.
  33. #define DEB_FILTERWIDS (1 << 24) // Documents passed to CiFilter
  34. #define DEB_PROPSTORE (1 << 25) // Property store
  35. #define DEB_PIDTABLE (1 << 26) // PROPID lookup table
  36. #define DEB_SECSTORE (1 << 27) // SDID lookup table
  37. #define DEB_CURSOR (1 << 28) // Cursor code
  38. #define DEB_USN (1 << 29) // Usn code
  39. #define DEB_FSNOTIFY (1 << 30) // File system notifications
  40. #define DEB_PSBACKUP DEB_PROPSTORE // Property store backup
  41. #define DEB_NEVER (1 << 31)
  42. // Enum used for BackDoor commands
  43. enum CiCommand
  44. {
  45. CiQuery,
  46. CiUpdate,
  47. CiDelete,
  48. CiPartCreate,
  49. CiPartDelete,
  50. CiPartMerge,
  51. CiInfoLevel,
  52. CiForceMerge,
  53. CiForceUpdate,
  54. CiDumpIndex,
  55. CiPendingUpdates,
  56. CiDumpWorkId
  57. };
  58. //
  59. // Global debugging flags. The CI_GLOBALDEBUG_FREE* variables are available
  60. // for other purposes.
  61. //
  62. #define CI_GLOBALDEBUG_DONTMOUNT_CI 0x00000001
  63. #define CI_GLOBALDEBUG_DONTTHROW_CORRUPT 0x00000002
  64. #define CI_GLOBALDEBUG_FREE3 0x00000004
  65. #define CI_GLOBALDEBUG_FREE4 0x00000008
  66. #define CI_GLOBALDEBUG_FREE5 0x00000010
  67. #define CI_GLOBALDEBUG_FREE6 0x00000020
  68. #define CI_GLOBALDEBUG_FREE7 0x00000040
  69. #define CI_GLOBALDEBUG_FREE8 0x00000080
  70. #define CI_GLOBALDEBUG_FREE9 0x00000100
  71. #define CI_GLOBALDEBUG_FREEA 0x00000200
  72. #define CI_GLOBALDEBUG_FREEB 0x00000400
  73. #define CI_GLOBALDEBUG_FREEC 0x00000800
  74. #define CI_GLOBALDEBUG_FREED 0x00001000
  75. #define CI_GLOBALDEBUG_FREEE 0x00002000
  76. #define CI_GLOBALDEBUG_FREEF 0x00004000
  77. #define CI_GLOBALDEBUG_FREE10 0x00008000
  78. #define CI_GLOBALDEBUG_FREE11 0x00010000
  79. #define CI_GLOBALDEBUG_FREE12 0x00020000
  80. #define CI_GLOBALDEBUG_FREE13 0x00040000
  81. #define CI_GLOBALDEBUG_FREE14 0x00080000
  82. #define CI_GLOBALDEBUG_FREE15 0x00100000
  83. #define CI_GLOBALDEBUG_FREE16 0x00200000
  84. #define CI_GLOBALDEBUG_FREE17 0x00400000
  85. #define CI_GLOBALDEBUG_FREE18 0x00800000
  86. #define CI_GLOBALDEBUG_FREE19 0x01000000
  87. #define CI_GLOBALDEBUG_FREE1A 0x02000000
  88. #define CI_GLOBALDEBUG_FREE1B 0x04000000
  89. #define CI_GLOBALDEBUG_FREE1C 0x08000000
  90. #define CI_GLOBALDEBUG_FREE1D 0x10000000
  91. #define CI_GLOBALDEBUG_FREE1E 0x20000000
  92. #define CI_GLOBALDEBUG_FREE1F 0x40000000
  93. #define CI_GLOBALDEBUG_FREE20 0x80000000
  94. extern ULONG ciDebugGlobalFlags;