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.

161 lines
5.9 KiB

  1. #ifndef _DFS_ENUMS_H
  2. #define _DFS_ENUMS_H
  3. #define WM_PARENT_NODE_CLOSING (WM_USER + 1)
  4. //Dfs Root Type Enums
  5. enum DFS_TYPE {
  6. DFS_TYPE_UNASSIGNED = 0,
  7. DFS_TYPE_FTDFS,
  8. DFS_TYPE_STANDALONE
  9. };
  10. //Dfs JunctionPoint State Enums
  11. enum DFS_JUNCTION_STATE {
  12. DFS_JUNCTION_STATE_UNASSIGNED = 0,
  13. DFS_JUNCTION_STATE_ALL_REP_OK,
  14. DFS_JUNCTION_STATE_NOT_ALL_REP_OK,
  15. DFS_JUNCTION_STATE_UNREACHABLE
  16. };
  17. //Dfs Target State Enums
  18. enum DFS_REFERRAL_STATE {
  19. DFS_REFERRAL_STATE_ONLINE = 0,
  20. DFS_REFERRAL_STATE_OFFLINE
  21. };
  22. enum DFS_TARGET_STATE {
  23. DFS_TARGET_STATE_UNASSIGNED = 0,
  24. DFS_TARGET_STATE_OK,
  25. DFS_TARGET_STATE_UNREACHABLE
  26. };
  27. enum FILTERDFSLINKS_TYPE {
  28. FILTERDFSLINKS_TYPE_NO_FILTER = 0,
  29. FILTERDFSLINKS_TYPE_BEGINWITH,
  30. FILTERDFSLINKS_TYPE_CONTAIN
  31. };
  32. #define FILTERDFSLINKS_MAXLIMIT_DEFAULT 100
  33. #define KEYTWORDS_UPPER_RANGER 256
  34. #define DNSNAMELIMIT 2048 // as defined in AD schema UpperRange for dnsHostName
  35. #define ATTR_SCHEMANAMINGCONTEXT _T("schemaNamingContext")
  36. #define DN_PREFIX_SCHEMA_REPLICASET _T("CN=NTFRS-Replica-Set,")
  37. #define FRS_STAGE_PATH _T("Frs-Staging")
  38. enum FRSSHARE_TYPE
  39. {
  40. FRSSHARE_TYPE_OK = 0,
  41. FRSSHARE_TYPE_NONTFRS,
  42. FRSSHARE_TYPE_NOTDISKTREE,
  43. FRSSHARE_TYPE_NOTNTFS,
  44. FRSSHARE_TYPE_CONFLICTSTAGING,
  45. FRSSHARE_TYPE_NODOMAIN,
  46. FRSSHARE_TYPE_NOTSMBDISK,
  47. FRSSHARE_TYPE_OVERLAPPING,
  48. FRSSHARE_TYPE_UNKNOWN
  49. };
  50. //
  51. // replica set types
  52. //
  53. #define FRS_RSTYPE_ENTERPRISE_SYSVOL _T("1")
  54. #define FRS_RSTYPE_DOMAIN_SYSVOL _T("2")
  55. #define FRS_RSTYPE_DFS _T("3")
  56. #define FRS_RSTYPE_OTHER _T("4")
  57. //
  58. // replica set topology preference
  59. //
  60. #define FRS_RSTOPOLOGYPREF_RING _T("1")
  61. #define FRS_RSTOPOLOGYPREF_HUBSPOKE _T("2")
  62. #define FRS_RSTOPOLOGYPREF_FULLMESH _T("3")
  63. #define FRS_RSTOPOLOGYPREF_CUSTOM _T("4")
  64. //
  65. // enabledConnection values
  66. //
  67. #define CONNECTION_ENABLED_TRUE _T("TRUE")
  68. #define CONNECTION_ENABLED_FALSE _T("FALSE")
  69. //
  70. // FRS attribute names
  71. //
  72. #define ATTR_OBJCLASS _T("objectClass")
  73. #define ATTR_DNSHOSTNAME _T("dNSHostName")
  74. #define ATTR_OBJECTGUID _T("objectGUID")
  75. #define ATTR_DISTINGUISHEDNAME _T("distinguishedName")
  76. #define ATTR_SYSTEMMAYCONTAIN _T("systemMayContain")
  77. #define ATTR_FRS_REPSET_TYPE _T("fRSReplicaSetType")
  78. #define ATTR_FRS_REPSET_TOPOLOGYPREF _T("msFRS-Topology-Pref")
  79. #define ATTR_FRS_REPSET_HUBSERVER _T("msFRS-Hub-Member")
  80. #define ATTR_FRS_REPSET_PRIMARYMEMBER _T("fRSPrimaryMember")
  81. #define ATTR_FRS_REPSET_FILEFILTER _T("fRSFileFilter")
  82. #define ATTR_FRS_REPSET_DIRFILTER _T("fRSDirectoryFilter")
  83. #define ATTR_FRS_MEMBER_COMPUTERREF _T("frsComputerReference")
  84. #define ATTR_NTDS_CONNECTION_FROMSERVER _T("fromServer")
  85. #define ATTR_NTDS_CONNECTION_ENABLEDCONNECTION _T("enabledConnection")
  86. #define ATTR_NTDS_CONNECTION_OPTIONS _T("options")
  87. #define ATTR_NTDS_CONNECTION_SCHEDULE _T("schedule")
  88. #define ATTR_FRS_SUBSCRIBER_MEMBERREF _T("fRSMemberReference")
  89. #define ATTR_FRS_SUBSCRIBER_ROOTPATH _T("fRSRootPath")
  90. #define ATTR_FRS_SUBSCRIBER_STAGINGPATH _T("fRSStagingPath")
  91. #define ATTR_SHRPUB_UNCNAME _T("uNCName")
  92. #define ATTR_SHRPUB_DESCRIPTION _T("description")
  93. #define ATTR_SHRPUB_KEYWORDS _T("keywords")
  94. #define ATTR_SHRPUB_MANAGEDBY _T("managedBy")
  95. //
  96. // values for objectClass
  97. //
  98. #define OBJCLASS_NTFRSSETTINGS _T("nTFRSSettings")
  99. #define OBJCLASS_NTFRSREPLICASET _T("nTFRSReplicaSet")
  100. #define OBJCLASS_NTFRSMEMBER _T("nTFRSMember")
  101. #define OBJCLASS_NTDSCONNECTION _T("nTDSConnection")
  102. #define OBJCLASS_NTFRSSUBSCRIPTIONS _T("nTFRSSubscriptions")
  103. #define OBJCLASS_NTFRSSUBSCRIBER _T("nTFRSSubscriber")
  104. #define OBJCLASS_VOLUME _T("volume")
  105. //
  106. // search filter on objectClass
  107. //
  108. #define OBJCLASS_SF_ALL _T("(objectClass=*)")
  109. #define OBJCLASS_SF_CLASSSCHEMA _T("(objectCategory=classSchema)")
  110. #define OBJCLASS_SF_COMPUTER _T("(objectCategory=computer)")
  111. #define OBJCLASS_SF_NTFRSSETTINGS _T("(objectCategory=nTFRSSettings)")
  112. #define OBJCLASS_SF_NTFRSREPLICASET _T("(objectCategory=nTFRSReplicaSet)")
  113. #define OBJCLASS_SF_NTFRSMEMBER _T("(objectCategory=nTFRSMember)")
  114. #define OBJCLASS_SF_NTDSCONNECTION _T("(objectCategory=nTDSConnection)")
  115. #define OBJCLASS_SF_NTFRSSUBSCRIPTIONS _T("(objectCategory=nTFRSSubscriptions)")
  116. #define OBJCLASS_SF_NTFRSSUBSCRIBER _T("(objectCategory=nTFRSSubscriber)")
  117. #define OBJCLASS_SF_FTDFS _T("(objectCategory=fTDfs)")
  118. #define OBJCLASS_SF_VOLUME _T("(objectCategory=volume)")
  119. #define DEFAULT_FILEFILTER _T("*.bak,*.tmp,~*")
  120. #define DEFAULT_CONNECTION_OPTIONS _T("0")
  121. #define NUM_OF_FRSMEMBER_ATTRS 9
  122. #define NUM_OF_FRSCONNECTION_ATTRS 5
  123. enum CONNECTION_OPTYPE {
  124. CONNECTION_OPTYPE_OTHERS = 0,
  125. CONNECTION_OPTYPE_ADD,
  126. CONNECTION_OPTYPE_DEL
  127. };
  128. typedef enum _Connection_Priority
  129. {
  130. PRIORITY_HIGH = 2,
  131. PRIORITY_MEDIUM = 4,
  132. PRIORITY_LOW = 7
  133. } Connection_Priority;
  134. #endif //_DFS_ENUMS_H