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.

171 lines
5.7 KiB

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