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.

52 lines
1.9 KiB

  1. //******************************************************************************
  2. //
  3. // Microsoft Confidential. Copyright (c) Microsoft Corporation 1999. All rights reserved
  4. //
  5. // File: Collect.h
  6. //
  7. // Description: Support for Namespace Garbage Collection
  8. //
  9. // History: 12-01-99 leonardm Created
  10. //
  11. //******************************************************************************
  12. #ifdef __cplusplus
  13. extern "C"{
  14. #endif
  15. //******************************************************************************
  16. //
  17. // Function: GarbageCollectNamespaces
  18. //
  19. // Description: Iterates through namespaces under root\rsop and for each of those
  20. // that are determined to be garbage-collectable, it connects to
  21. // sub-namespaces 'User' and 'Computer'.
  22. //
  23. // Any of the sub-namespaces that is older than TTLMinutes will be deleted.
  24. // If no sub-namespaces are left, then the parent namespace is deleted as well.
  25. //
  26. // Garbage-collectable are those namespaces which satisfy a set of
  27. // criteria which at the present time is based solely on the naming convention
  28. // as follows: namespaces under root\rsop whose name starts with "NS"
  29. //
  30. // Sub-namespaces 'User' and 'Computer' are expected to have an instance of class
  31. // RSOP_Session. The data member 'creationTime' of that instance is examined when
  32. // evaluating whether the sub-namespace should be deleted.
  33. //
  34. //
  35. // Parameters: TTLMinutes - The maximum number of minutes that may have
  36. // elapsed since the creation of a sub-namespace
  37. //
  38. // Return:
  39. //
  40. // History: 12/01/99 leonardm Created.
  41. //
  42. //******************************************************************************
  43. HRESULT GarbageCollectNamespaces(ULONG TTLMinutes);
  44. #ifdef __cplusplus
  45. }
  46. #endif