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.

199 lines
8.0 KiB

  1. //GENERATE_VALUE_LIST changes how LIST_ITEM appears when
  2. //expanded by the preprocessor.
  3. //When GENERATE_VALUE_LIST is not defined,
  4. //LIST_ITEM expands to the first column, which is utilized
  5. //within WLBS_MOFData.h to define enumarated types that
  6. //act as keys to their correlated arrays.
  7. //When GENERATE_VALUE_LIST is defined, LIST_ITEM
  8. //expands to the second column which is utilized within
  9. //WLBS_MOFData.cpp to initialize arrays of strings.
  10. #ifdef GENERATE_VALUE_LIST
  11. # ifdef LIST_ITEM
  12. # undef LIST_ITEM
  13. # endif
  14. # define LIST_ITEM(WLBS_KEY, WLBS_VALUE) WLBS_VALUE
  15. #else
  16. # ifdef LIST_ITEM
  17. # undef LIST_ITEM
  18. # endif
  19. # define LIST_ITEM(WLBS_KEY, WLBS_VALUE) WLBS_KEY
  20. #endif
  21. //The first columns represent arrays of keys and are defined in
  22. //enumerated types. The second columns are values that are
  23. //stored in arrays of strings. The arrays are stored within
  24. //namespaces and are initialized in WLBS_MOFData.cpp. The
  25. //enumerated types are also scoped within namespaces and are
  26. //defined in WLBS_MOFData.h.
  27. #define MOF_NODE_PROPERTY_LIST \
  28. LIST_ITEM(NAME, L"Name") , \
  29. LIST_ITEM(HOSTID, L"HostPriority") , \
  30. LIST_ITEM(IPADDRESS, L"DedicatedIPAddress") , \
  31. LIST_ITEM(STATUS, L"StatusCode") , \
  32. LIST_ITEM(COMPUTERNAME,L"ComputerName") , \
  33. LIST_ITEM(CREATCLASS, L"CreationClassName")
  34. #define MOF_NODE_METHOD_LIST \
  35. LIST_ITEM(DISABLE, L"Disable") , \
  36. LIST_ITEM(ENABLE, L"Enable") , \
  37. LIST_ITEM(DRAIN, L"Drain") , \
  38. LIST_ITEM(DISABLE_EX,L"DisableEx"), \
  39. LIST_ITEM(ENABLE_EX, L"EnableEx") , \
  40. LIST_ITEM(DRAIN_EX, L"DrainEx") , \
  41. LIST_ITEM(DRAINSTOP, L"DrainStop"), \
  42. LIST_ITEM(RESUME, L"Resume") , \
  43. LIST_ITEM(START, L"Start") , \
  44. LIST_ITEM(STOP, L"Stop") , \
  45. LIST_ITEM(SUSPEND, L"Suspend")
  46. #define MOF_CLUSTER_PROPERTY_LIST \
  47. LIST_ITEM(NAME, L"Name") , \
  48. LIST_ITEM(IPADDRESS, L"InterconnectAddress") , \
  49. LIST_ITEM(MAXNODES, L"MaxNumberOfNodes") , \
  50. LIST_ITEM(CLUSSTATE, L"ClusterState") , \
  51. LIST_ITEM(CREATCLASS, L"CreationClassName") , \
  52. LIST_ITEM(STATUS, L"ClusterState")
  53. #define MOF_CLUSTER_METHOD_LIST \
  54. LIST_ITEM(DISABLE, L"Disable") , \
  55. LIST_ITEM(ENABLE, L"Enable") , \
  56. LIST_ITEM(DRAIN, L"Drain") , \
  57. LIST_ITEM(DRAINSTOP, L"DrainStop"), \
  58. LIST_ITEM(RESUME, L"Resume") , \
  59. LIST_ITEM(START, L"Start") , \
  60. LIST_ITEM(STOP, L"Stop") , \
  61. LIST_ITEM(SUSPEND, L"Suspend")
  62. #define MOF_CLUSTERSETTING_PROPERTY_LIST \
  63. LIST_ITEM(NAME, L"Name") , \
  64. LIST_ITEM(CLUSNAME, L"ClusterName") , \
  65. LIST_ITEM(CLUSIPADDRESS, L"ClusterIPAddress") , \
  66. LIST_ITEM(CLUSNETMASK, L"ClusterNetworkMask") , \
  67. LIST_ITEM(CLUSMAC, L"ClusterMACAddress") , \
  68. LIST_ITEM(MULTIENABLE, L"MulticastSupportEnabled") , \
  69. LIST_ITEM(REMCNTEN, L"RemoteControlEnabled") , \
  70. LIST_ITEM(IGMPSUPPORT, L"IgmpSupport") , \
  71. LIST_ITEM(CLUSTERIPTOMULTICASTIP, L"ClusterIPToMulticastIP") , \
  72. LIST_ITEM(MULTICASTIPADDRESS, L"MulticastIPAddress") , \
  73. LIST_ITEM(ADAPTERGUID, L"AdapterGuid") , \
  74. LIST_ITEM(BDATEAMACTIVE, L"BDATeamActive") , \
  75. LIST_ITEM(BDATEAMID, L"BDATeamId") , \
  76. LIST_ITEM(BDATEAMMASTER, L"BDATeamMaster") , \
  77. LIST_ITEM(BDAREVERSEHASH, L"BDAReverseHash") , \
  78. LIST_ITEM(IDHBENAB, L"IdentityHeartbeatEnabled")
  79. #define MOF_CLUSTERSETTING_METHOD_LIST \
  80. LIST_ITEM(SETPASS, L"SetPassword") , \
  81. LIST_ITEM(LDSETT, L"LoadAllSettings") , \
  82. LIST_ITEM(SETDEF, L"SetDefaults")
  83. #define MOF_NODESETTING_PROPERTY_LIST \
  84. LIST_ITEM(NAME, L"Name") , \
  85. LIST_ITEM(DEDIPADDRESS, L"DedicatedIPAddress") , \
  86. LIST_ITEM(DEDNETMASK, L"DedicatedNetworkMask") , \
  87. LIST_ITEM(NUMRULES, L"NumberOfRules") , \
  88. LIST_ITEM(HOSTPRI, L"HostPriority") , \
  89. LIST_ITEM(MSGPERIOD, L"AliveMessagePeriod") , \
  90. LIST_ITEM(MSGTOLER, L"AliveMessageTolerance") , \
  91. LIST_ITEM(CLUSMODEONSTART, L"ClusterModeOnStart") , \
  92. LIST_ITEM(CLUSMODESUSPONSTART, L"ClusterModeSuspendOnStart"), \
  93. LIST_ITEM(PERSISTSUSPONREBOOT, L"PersistSuspendOnReboot"), \
  94. LIST_ITEM(REMOTEUDPPORT, L"RemoteControlUDPPort") , \
  95. LIST_ITEM(MASKSRCMAC, L"MaskSourceMAC") , \
  96. LIST_ITEM(DESCPERALLOC, L"DescriptorsPerAlloc") , \
  97. LIST_ITEM(MAXDESCALLOCS, L"MaxDescriptorsPerAlloc"), \
  98. LIST_ITEM(FILTERICMP, L"FilterIcmp") , \
  99. LIST_ITEM(TCPDESCRIPTORTIMEOUT, L"TcpDescriptorTimeout"), \
  100. LIST_ITEM(IPSECDESCRIPTORTIMEOUT,L"IpSecDescriptorTimeout"), \
  101. LIST_ITEM(NUMACTIONS, L"NumActions") , \
  102. LIST_ITEM(NUMPACKETS, L"NumPackets") , \
  103. LIST_ITEM(NUMALIVEMSGS, L"NumAliveMessages") , \
  104. LIST_ITEM(ADAPTERGUID, L"AdapterGuid")
  105. //Removed per kyrilf request 8-12-1999
  106. // LIST_ITEM(NBTENABLE, L"NBTSupportEnable") , \
  107. #define MOF_NODESETTING_METHOD_LIST \
  108. LIST_ITEM(GETPORT, L"GetPortRule") , \
  109. LIST_ITEM(GETPORT_EX,L"GetPortRuleEx") , \
  110. LIST_ITEM(LDSETT, L"LoadAllSettings") , \
  111. LIST_ITEM(SETDEF, L"SetDefaults")
  112. #define MOF_PORTRULE_PROPERTY_LIST \
  113. LIST_ITEM(NAME, L"Name") , \
  114. LIST_ITEM(STPORT, L"StartPort") , \
  115. LIST_ITEM(EDPORT, L"EndPort") , \
  116. LIST_ITEM(PROT, L"Protocol"), \
  117. LIST_ITEM(ADAPTERGUID, L"AdapterGuid")
  118. #define MOF_PORTRULE_METHOD_LIST \
  119. LIST_ITEM(SETDEF, L"SetDefaults")
  120. #define MOF_PRFAIL_PROPERTY_LIST \
  121. LIST_ITEM(PRIO, L"Priority")
  122. #define MOF_PRLOADBAL_PROPERTY_LIST \
  123. LIST_ITEM(EQLD, L"EqualLoad") , \
  124. LIST_ITEM(LDWT, L"LoadWeight") , \
  125. LIST_ITEM(AFFIN, L"Affinity")
  126. #define MOF_PORTRULE_EX_PROPERTY_LIST \
  127. LIST_ITEM(NAME, L"Name") , \
  128. LIST_ITEM(VIP, L"VirtualIpAddress"), \
  129. LIST_ITEM(STPORT, L"StartPort") , \
  130. LIST_ITEM(EDPORT, L"EndPort") , \
  131. LIST_ITEM(PROT, L"Protocol") , \
  132. LIST_ITEM(ADAPTERGUID, L"AdapterGuid") , \
  133. LIST_ITEM(FILTERINGMODE, L"FilteringMode"), \
  134. LIST_ITEM(EQLD, L"EqualLoad") , \
  135. LIST_ITEM(LDWT, L"LoadWeight") , \
  136. LIST_ITEM(AFFIN, L"Affinity") , \
  137. LIST_ITEM(PRIO, L"Priority") , \
  138. LIST_ITEM(PORTSTATE, L"PortState")
  139. #define MOF_PORTRULE_EX_METHOD_LIST \
  140. LIST_ITEM(SETDEF, L"SetDefaults")
  141. #define MOF_PARTICIPATINGNODE_PROPERTY_LIST \
  142. LIST_ITEM(CLUSTER, L"Dependent") , \
  143. LIST_ITEM(NODE, L"Antecedent")
  144. #define MOF_NODESETTINGPORTRULE_PROPERTY_LIST \
  145. LIST_ITEM(NODESET, L"GroupComponent") , \
  146. LIST_ITEM(PORTRULE, L"PartComponent")
  147. #define MOF_CLUSCLUSSETTING_PROPERTY_LIST \
  148. LIST_ITEM(CLUSTER, L"Element") , \
  149. LIST_ITEM(CLUSSET, L"Setting")
  150. #define MOF_NODENODESETTING_PROPERTY_LIST \
  151. LIST_ITEM(NODE, L"Element") , \
  152. LIST_ITEM(NODESET, L"Setting")
  153. #define MOF_CLASS_LIST \
  154. LIST_ITEM(CLUSTER, L"MicrosoftNLB_Cluster") , \
  155. LIST_ITEM(NODE, L"MicrosoftNLB_Node") , \
  156. LIST_ITEM(CLUSSET, L"MicrosoftNLB_ClusterSetting") , \
  157. LIST_ITEM(NODESET, L"MicrosoftNLB_NodeSetting") , \
  158. LIST_ITEM(PORTRULE, L"MicrosoftNLB_PortRule") , \
  159. LIST_ITEM(PRFAIL, L"MicrosoftNLB_PortRuleFailover") , \
  160. LIST_ITEM(PRDIS, L"MicrosoftNLB_PortRuleDisabled") , \
  161. LIST_ITEM(PRLOADB, L"MicrosoftNLB_PortRuleLoadbalanced") , \
  162. LIST_ITEM(PORTRULE_EX, L"MicrosoftNLB_PortRuleEx") , \
  163. LIST_ITEM(PARTNODE, L"MicrosoftNLB_ParticipatingNode") , \
  164. LIST_ITEM(NODESETPR, L"MicrosoftNLB_NodeSettingPortRule") , \
  165. LIST_ITEM(CLUSCLUSSET, L"MicrosoftNLB_ClusterClusterSetting"), \
  166. LIST_ITEM(NODENODESET, L"MicrosoftNLB_NodeNodeSetting")