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.

131 lines
5.0 KiB

  1. ////////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Filename : ComDefs.H
  4. // Purpose : Filtering Engine / Service common definitions including
  5. // FLAGS, STATUS, and CONSTANT MACROS
  6. //
  7. // Project : PQS
  8. // Component: Filter
  9. //
  10. // Author : dovh
  11. //
  12. // Log : Aug-05-1995 dovh - Creation
  13. //
  14. // May-25-1996 - Dov Harel (DovH): Added a few flags & status codes.
  15. // In particular replaced
  16. // FTF_STATUS_QUERY_ID_MISMATCH and FTF_STATUS_QUERY_ID_NOT_FOUND by
  17. // FTF_STATUS_REQUEST_ID_MISMATCH and FTF_STATUS_REQUEST_ID_NOT_FOUND
  18. // resp. replaced FTF_FLAG_ACCEPT_ANY_QUERY_ID by
  19. // FTF_FLAG_ACCEPT_ANY_REQUEST_ID
  20. // Jun-10-1996 Dov Harel (DovH)
  21. // Added FTF_FLAG_WRITE_EMPTY_RESULTS_FILE
  22. // Sep-30-1996 Dov Harel (DovH)
  23. // Added FTF_FLAG_DUMP_RESTRICTED_SUBSET
  24. // Dec-11-1996 Dov Harel (DovH)
  25. // UNICODE Preparation: Convert char to TCHAR
  26. //
  27. // Feb-18-1997 Dov Harel (DovH) - #define FTF_STATUS_SERVICE_IS_PAUSED ...
  28. // Nov-30-1997 Dov Harel (DovH) - #define FTF_STATUS_PATTERN_TOO_SHORT ...
  29. // Jan-26-1998 Uri Barash(UriB) - Move query db name define to Names.h
  30. // Jan-29-1997 dovh - Add FTF_FLAG_BATCH_FAILED flag.
  31. // Feb-23-1998 yairh - change all errors to be an HRESULT error
  32. // Jul-15-1997 dovh - Move #ifdef MINDEX to Diffs.h
  33. // Nov-12-1998 yairh - add query set defines
  34. // Jan-05-1999 urib - Move MAX_PATTERN_LENGTH here from mpat.h
  35. // Mar-02-1999 dovh - Move SET_FE_HANDLE/GET_FE_HANDLE here from Tls.h
  36. // May-18-1999 urib - Define the UNICODE word breaker character.
  37. // Feb-22-2000 urib - Move stuff away.
  38. //
  39. ////////////////////////////////////////////////////////////////////////////////
  40. #ifndef __FILTER__COMDEFS_H__
  41. #define __FILTER__COMDEFS_H__
  42. //
  43. // FTF_FLAG_ MACRO DEFINITIONS:
  44. //
  45. #define FTF_FLAG_CASE_INSENSITIVE_FLAG 0X00000001L
  46. #define FTF_FLAG_SUBDIR_SEARCH 0X00000002L
  47. #define FTF_FLAG_ASYNC_REQUEST 0X00000004L
  48. #define FTF_FLAG_LOCAL_OPERATION 0X00000010L
  49. #define FTF_FLAG_DEMO_VIEW 0X00000020L
  50. #define FTF_FLAG_IGNORE_EXTERNAL_TERMS 0X00000040L
  51. #define FTF_FLAG_RESERVED_07 0X00000080L
  52. #define FTF_FLAG_ACCEPT_ANY_REQUEST_ID 0X00000200L
  53. #define FTF_FLAG_CHECK_EXP_ID_MATCH 0X00000400L
  54. #define FTF_FLAG_ADD_EXP_REQUEST 0X00001000L
  55. #define FTF_FLAG_REMOVE_EXP_REQUEST 0X00002000L
  56. #define FTF_FLAG_QUERY_MGR_CLIENT 0X00004000L
  57. #define FTF_FLAG_DOC_MGR_CLIENT 0X00008000L
  58. #define FTF_FLAG_EMPTY_DEFAULT_NOTIFY_SET 0X00010000L
  59. #define FTF_FLAG_EMPTY_NOTIFY_SET 0X00020000L
  60. #define FTF_FLAG_WRITE_EMPTY_RESULTS_FILE 0X00040000L
  61. #define FTF_FLAG_BATCH_FAILED 0X00080000L
  62. //
  63. // DUMP EXPRESSIONS OPTIONS (REUSED FLAGS)
  64. //
  65. #define FTF_FLAG_CONDENSE_BLANKS 0X00000001L
  66. #define FTF_FLAG_CONSEQUTIVE_EXP_IDS 0X00000002L
  67. #define FTF_FLAG_RESERVED 0X00000004L
  68. #define FTF_FLAG_DUMP_RESTRICTED_SUBSET 0X00000008L
  69. //
  70. // FTF_CONST_ MACRO DEFINITIONS:
  71. //
  72. #define FTF_CONST_MAX_NAME_LENGTH 64
  73. #define FTF_CONST_SHORT_FILENAME_LENGTH 16
  74. #define FTF_CONST_MEDIUM_FILENAME_LENGTH 32
  75. #define FTF_CONST_MAX_FILENAME_LENGTH 128
  76. #define FTF_CONST_MAX_PATH_LENGTH 256
  77. #define FTF_CONST_FILENAMES_BUFFER_SIZE 3072
  78. #define FTF_CONST_MAX_SUBMIT_FILECOUNT 32
  79. #define FTF_CONST_MAX_SUBMIT_DIRCOUNT 32
  80. #define FTF_CONST_MAX_REQUESTS_STATUS 128
  81. #define FTF_CONST_MAX_SUBMIT_EXPCOUNT 32
  82. #define FTF_CONST_EXPS_BUFFER_SIZE 3072
  83. //
  84. // FTF_CONST_SHUTDOWN_ OPTIONS (EXPEDIENCY LEVEL):
  85. //
  86. #define FTF_CONST_SHUTDOWN_ON_EMPTY_QUEUE 1
  87. #define FTF_CONST_SHUTDOWN_IMMEDIATE 2
  88. #define MAX_PATTERN_LENGTH 1024
  89. #define TEXT_BUFFER_MAX_SIZE (16384 - MAX_PATTERN_LENGTH)
  90. //
  91. // NOTICE: MAX_PHRASE_LEN >= UNDIRECTED_PROXIMITY_INTERVAL
  92. //
  93. #define MAX_PHRASE_LEN 50
  94. #define UNDIRECTED_PROXIMITY_INTERVAL 50
  95. #if UNDIRECTED_PROXIMITY_INTERVAL > MAX_PHRASE_LEN
  96. #error BUG: MAX_PHRASE_LEN >= UNDIRECTED_PROXIMITY_INTERVAL
  97. #endif
  98. #define PQ_WORD_BREAK 0x0001L
  99. typedef enum {
  100. DICT_SUCCESS,
  101. DICT_ITEM_ALREADY_PRESENT,
  102. DICT_ITEM_NOT_FOUND,
  103. DICT_FIRST_ITEM,
  104. DICT_LAST_ITEM,
  105. DICT_EMPTY_DICTIONARY,
  106. DICT_NULL_ITEM
  107. } DictStatus;
  108. #endif // __FILTER__COMDEFS_H__