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.

126 lines
2.2 KiB

  1. #ifndef _NMSSCV_
  2. #define _NMSSCV_
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. /*++
  7. /*++
  8. Copyright (c) 1989 Microsoft Corporation
  9. Module Name:
  10. nmsscv.h
  11. Abstract:
  12. Functions:
  13. Portability:
  14. This header is portable.
  15. Author:
  16. Pradeep Bahl (PradeepB) Feb-1993
  17. Revision History:
  18. Modification Date Person Description of Modification
  19. ------------------ ------- ---------------------------
  20. --*/
  21. /*
  22. includes
  23. */
  24. #include <time.h>
  25. #include "wins.h"
  26. //#include "winscnf.h"
  27. /*
  28. defines
  29. */
  30. /*
  31. macros
  32. */
  33. /*
  34. externs
  35. */
  36. //
  37. // The min. version number to start scavenging from (for local records)
  38. //
  39. extern VERS_NO_T NmsScvMinScvVersNo;
  40. extern HANDLE NmsScvDoScvEvtHdl;//event signaled to initiate scavenging
  41. volatile extern BOOL fNmsScvThdOutOfReck;//To indicate that the scav. thd has
  42. //db session but is not in the count
  43. //of thds to wait for.
  44. /*
  45. typedef definitions
  46. */
  47. typedef struct _NMSSCV_CC_T {
  48. DWORD TimeInt;
  49. BOOL fSpTime;
  50. DWORD SpTimeInt;
  51. DWORD MaxRecsAAT;
  52. BOOL fUseRplPnrs;
  53. } NMSSCV_CC_T, *PNMSSCV_CC_T;
  54. typedef struct _NMSSCV_PARAM_T {
  55. DWORD RefreshInterval;
  56. DWORD TombstoneInterval;
  57. DWORD TombstoneTimeout;
  58. DWORD VerifyInterval;
  59. NMSSCV_CC_T CC;
  60. LONG PrLvl;
  61. DWORD ScvChunk;
  62. CHAR BackupDirPath[WINS_MAX_FILENAME_SZ];
  63. } NMSSCV_PARAM_T, *PNMSSCV_PARAM_T;
  64. //
  65. // Used to pass information to NmsDbGetDataRecs
  66. //
  67. typedef struct _NMSSCV_CLUT_T {
  68. DWORD Interval;
  69. time_t CurrentTime;
  70. DWORD OwnerId;
  71. DWORD Age;
  72. BOOL fAll;
  73. } NMSSCV_CLUT_T, *PNMSSCV_CLUT_T;
  74. //
  75. // Used by ChkConfNUpd() to determine whether a record pulled during
  76. // verification/consistency check should be inserted into the db
  77. //
  78. typedef enum _NMSSCV_REC_ACTION_E {
  79. NMSSCV_E_INSERT,
  80. NMSSCV_E_DONT_INSERT
  81. } NMSSCV_REC_ACTION_E, *PNMSSCV_REC_ACTION_E;
  82. /*
  83. function declarations
  84. */
  85. extern
  86. VOID
  87. NmsScvInit(
  88. VOID
  89. );
  90. #ifdef __cplusplus
  91. }
  92. #endif
  93. #endif //_NMSSCV_