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.

85 lines
1.7 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_OUT_OF_DOMAIN 0x0002
  20. #define DFS_REFERRAL_DATA_DOMAIN_REFERRAL 0x0010
  21. #define DFS_REFERRAL_DATA_DOMAIN_DC_REFERRAL 0x0020
  22. #define DFS_DEFAULT_REFERRAL_TIMEOUT 300
  23. typedef struct _REFFERAL_HEADER_
  24. {
  25. ULONG VersionNumber;
  26. ULONG ReferralFlags;
  27. ULONG TotalSize;
  28. ULONG ReplicaCount;
  29. ULONG Timeout;
  30. ULONG OffsetToReplicas;
  31. ULONG LinkNameLength;
  32. WCHAR LinkName[1];
  33. }REFERRAL_HEADER, *PREFERRAL_HEADER;
  34. typedef struct _REPLICA_INFORMATION_
  35. {
  36. ULONG NextEntryOffset;
  37. ULONG ReplicaFlags;
  38. ULONG ReplicaCost;
  39. ULONG ReplicaNameLength;
  40. WCHAR ReplicaName[1];
  41. }REPLICA_INFORMATION, *PREPLICA_INFORMATION;
  42. #define DFS_OLDDFS_SERVER 0x00000001 //for flags field below
  43. typedef struct _REPLICA_DATA_INFO_
  44. {
  45. ULONG Flags;
  46. ULONG ClientBufferSize;
  47. ULONG MaxReferralLevel;
  48. ULONG CostLimit;
  49. ULONG NumReplicasToReturn;
  50. ULONG IpLength;
  51. ULONG LinkNameLength;
  52. USHORT IpFamily;
  53. char IpData[14];
  54. WCHAR LinkName[1];
  55. }REPLICA_DATA_INFO, *PREPLICA_DATA_INFO;
  56. #ifdef __cplusplus
  57. }
  58. #endif
  59. #endif // __DFS_REFERRAL_DATA_H__