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.

90 lines
1.4 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. All rights reserved
  4. Abstract:
  5. This module provides functionality for ADs within spooler
  6. Author:
  7. Steve Wilson (NT) July 1997
  8. Revision History:
  9. --*/
  10. typedef struct _SEARCHCOLUMN {
  11. ADS_SEARCH_COLUMN Column;
  12. HRESULT hr;
  13. } SEARCHCOLUMN, *PSEARCHCOLUMN;
  14. typedef struct _RetryList {
  15. PWSTR pszObjectGUID;
  16. ULONG_PTR nRetries;
  17. struct _RetryList *pPrev;
  18. struct _RetryList *pNext;
  19. } RETRYLIST, *PRETRYLIST;
  20. typedef struct _PRUNINGPOLICIES {
  21. DWORD dwPruneDownlevel;
  22. DWORD dwPruningRetries;
  23. DWORD dwPruningRetryLog;
  24. } PRUNINGPOLICIES, *PPRUNINGPOLICIES;
  25. DWORD
  26. SpawnDsPrune(
  27. DWORD dwDelay
  28. );
  29. DWORD
  30. WINAPI
  31. DsPrune(
  32. PDWORD pdwDelay
  33. );
  34. VOID
  35. DeleteOrphan(
  36. PWSTR *ppszMySites,
  37. ULONG cMySites,
  38. SEARCHCOLUMN Col[],
  39. PRUNINGPOLICIES *pPruningPolicies
  40. );
  41. HRESULT
  42. DeleteOrphans(
  43. PWSTR *ppszMySites,
  44. ULONG cMySites,
  45. PWSTR pszSearchRoot,
  46. PRUNINGPOLICIES *pPruningPolicies
  47. );
  48. PRETRYLIST
  49. GetRetry(
  50. PWSTR pszObjectGUID
  51. );
  52. VOID
  53. DeleteRetry(
  54. PRETRYLIST pRetry
  55. );
  56. BOOL
  57. EnoughRetries(
  58. IADs *pADs,
  59. DWORD dwPruningRetries
  60. );
  61. PRETRYLIST
  62. FindRetry(
  63. PWSTR pszObjectGUID
  64. );
  65. VOID
  66. DeleteRetryEntry(
  67. IADs *pADs
  68. );