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.

85 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 1989 Microsoft Corporation.
  3. Module Name:
  4. DfsReferalData.h
  5. Abstract:
  6. This module contains the main infrastructure for mup data structures.
  7. Revision History:
  8. Uday Hegde (udayh) 01\16\2001
  9. Copied from structures setup by RohanP.
  10. NOTES:
  11. */
  12. #ifndef __DFS_REFERRAL_DATA_H__
  13. #define __DFS_REFERRAL_DATA_H__
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. #define CURRENT_DFS_REPLICA_HEADER_VERSION 1
  18. #define DFS_REFERRAL_DATA_ROOT_REFERRAL 0x0001
  19. #define DFS_REFERRAL_DATA_DOMAIN_REFERRAL 0x0010
  20. #define DFS_REFERRAL_DATA_DOMAIN_DC_REFERRAL 0x0020
  21. #define DFS_DEFAULT_REFERRAL_TIMEOUT 300
  22. typedef struct _REFFERAL_HEADER_
  23. {
  24. ULONG VersionNumber;
  25. ULONG ReferralFlags;
  26. ULONG TotalSize;
  27. ULONG ReplicaCount;
  28. ULONG Timeout;
  29. ULONG OffsetToReplicas;
  30. ULONG LinkNameLength;
  31. WCHAR LinkName[1];
  32. }REFERRAL_HEADER, *PREFERRAL_HEADER;
  33. typedef struct _REPLICA_INFORMATION_
  34. {
  35. ULONG NextEntryOffset;
  36. ULONG ReplicaFlags;
  37. ULONG ReplicaCost;
  38. ULONG ReplicaNameLength;
  39. WCHAR ReplicaName[1];
  40. }REPLICA_INFORMATION, *PREPLICA_INFORMATION;
  41. #define DFS_OLDDFS_SERVER 0x00000001 //for flags field below
  42. typedef struct _REPLICA_DATA_INFO_
  43. {
  44. ULONG Flags;
  45. ULONG ClientBufferSize;
  46. ULONG MaxReferralLevel;
  47. ULONG CostLimit;
  48. ULONG NumReplicasToReturn;
  49. ULONG IpLength;
  50. ULONG LinkNameLength;
  51. USHORT IpFamily;
  52. char IpData[14];
  53. WCHAR LinkName[1];
  54. }REPLICA_DATA_INFO, *PREPLICA_DATA_INFO;
  55. #ifdef __cplusplus
  56. }
  57. #endif
  58. #endif // __DFS_REFERRAL_DATA_H__