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.

155 lines
5.4 KiB

  1. #include "WLBS_Provider.h"
  2. #include "WLBS_MOFData.h"
  3. #define GENERATE_VALUE_LIST
  4. #include "WLBS_MofLists.h"
  5. namespace MOF_CLASSES
  6. {
  7. LPWSTR g_szMOFClassList[] = { MOF_CLASS_LIST };
  8. PCREATE g_pCreateFunc[] =
  9. { CWLBS_Cluster::Create,
  10. CWLBS_Node::Create,
  11. CWLBS_ClusterSetting::Create,
  12. CWLBS_NodeSetting::Create,
  13. CWLBS_PortRule::Create,
  14. CWLBS_PortRule::Create,
  15. CWLBS_PortRule::Create,
  16. CWLBS_PortRule::Create,
  17. CWLBS_PortRule::Create, // For PortRuleEx
  18. CWLBS_ParticipatingNode::Create,
  19. CWLBS_NodeSetPortRule::Create,
  20. CWLBS_ClusClusSetting::Create,
  21. CWLBS_NodeNodeSetting::Create
  22. };
  23. DWORD NumClasses = sizeof(g_szMOFClassList)/sizeof(LPWSTR);
  24. };
  25. //MOF_NODE namespace initialization
  26. namespace MOF_NODE
  27. {
  28. LPWSTR szName = MOF_CLASSES::g_szMOFClassList[MOF_CLASSES::NODE];
  29. LPWSTR pProperties[] = { MOF_NODE_PROPERTY_LIST };
  30. LPWSTR pMethods[] = { MOF_NODE_METHOD_LIST };
  31. DWORD NumProperties = sizeof(pProperties)/sizeof(LPWSTR);
  32. DWORD NumMethods = sizeof(pMethods)/sizeof(LPWSTR);
  33. };
  34. //MOF_CLUSTER namespace initialization
  35. namespace MOF_CLUSTER
  36. {
  37. LPWSTR szName = MOF_CLASSES::g_szMOFClassList[MOF_CLASSES::CLUSTER];
  38. LPWSTR pProperties[] = { MOF_CLUSTER_PROPERTY_LIST };
  39. LPWSTR pMethods[] = { MOF_CLUSTER_METHOD_LIST };
  40. DWORD NumProperties = sizeof(pProperties)/sizeof(LPWSTR);
  41. DWORD NumMethods = sizeof(pMethods)/sizeof(LPWSTR);
  42. };
  43. //MOF_CLUSTERSETTING namespace initialization
  44. namespace MOF_CLUSTERSETTING
  45. {
  46. LPWSTR szName = MOF_CLASSES::g_szMOFClassList[MOF_CLASSES::CLUSSET];
  47. LPWSTR pProperties[] = { MOF_CLUSTERSETTING_PROPERTY_LIST };
  48. LPWSTR pMethods[] = { MOF_CLUSTERSETTING_METHOD_LIST };
  49. DWORD NumProperties = sizeof(pProperties)/sizeof(LPWSTR);
  50. DWORD NumMethods = sizeof(pMethods)/sizeof(LPWSTR);
  51. };
  52. //MOF_NODESETTING namespace initialization
  53. namespace MOF_NODESETTING
  54. {
  55. LPWSTR szName = MOF_CLASSES::g_szMOFClassList[MOF_CLASSES::NODESET];
  56. LPWSTR pProperties[] = { MOF_NODESETTING_PROPERTY_LIST };
  57. LPWSTR pMethods[] = { MOF_NODESETTING_METHOD_LIST };
  58. DWORD NumProperties = sizeof(pProperties)/sizeof(LPWSTR);
  59. DWORD NumMethods = sizeof(pMethods)/sizeof(LPWSTR);
  60. };
  61. //MOF_PORTRULE namespace initialization
  62. namespace MOF_PORTRULE
  63. {
  64. LPWSTR szName = MOF_CLASSES::g_szMOFClassList[MOF_CLASSES::PORTRULE];
  65. LPWSTR pProperties[] = { MOF_PORTRULE_PROPERTY_LIST };
  66. LPWSTR pMethods[] = { MOF_PORTRULE_METHOD_LIST };
  67. DWORD NumProperties = sizeof(pProperties)/sizeof(LPWSTR);
  68. DWORD NumMethods = sizeof(pMethods)/sizeof(LPWSTR);
  69. };
  70. //MOF_PRFAIL namespace initialization
  71. namespace MOF_PRFAIL
  72. {
  73. LPWSTR szName = MOF_CLASSES::g_szMOFClassList[MOF_CLASSES::PRFAIL];
  74. LPWSTR pProperties[] = { MOF_PRFAIL_PROPERTY_LIST };
  75. DWORD NumProperties = sizeof(pProperties)/sizeof(LPWSTR);
  76. };
  77. //MOF_PRLOADBAL namespace initialization
  78. namespace MOF_PRLOADBAL
  79. {
  80. LPWSTR szName = MOF_CLASSES::g_szMOFClassList[MOF_CLASSES::PRLOADB];
  81. LPWSTR pProperties[] = { MOF_PRLOADBAL_PROPERTY_LIST };
  82. DWORD NumProperties = sizeof(pProperties)/sizeof(LPWSTR);
  83. };
  84. //MOF_PRDIS namespace initialization
  85. namespace MOF_PRDIS
  86. {
  87. LPWSTR szName = MOF_CLASSES::g_szMOFClassList[MOF_CLASSES::PRDIS];
  88. };
  89. // MOF_PORTRULE_EX namespace initialization
  90. namespace MOF_PORTRULE_EX
  91. {
  92. LPWSTR szName = MOF_CLASSES::g_szMOFClassList[MOF_CLASSES::PORTRULE_EX];
  93. LPWSTR pProperties[] = { MOF_PORTRULE_EX_PROPERTY_LIST };
  94. LPWSTR pMethods[] = { MOF_PORTRULE_EX_METHOD_LIST };
  95. DWORD NumProperties = sizeof(pProperties)/sizeof(LPWSTR);
  96. DWORD NumMethods = sizeof(pMethods)/sizeof(LPWSTR);
  97. };
  98. //MOF_PARTICIPATINGNODE namespace initialization
  99. namespace MOF_PARTICIPATINGNODE
  100. {
  101. LPWSTR szName = MOF_CLASSES::g_szMOFClassList[MOF_CLASSES::PARTNODE];
  102. LPWSTR pProperties[] = { MOF_PARTICIPATINGNODE_PROPERTY_LIST };
  103. DWORD NumProperties = sizeof(pProperties)/sizeof(LPWSTR);
  104. };
  105. //MOF_NODESETTINGPORTRULE namespace initialization
  106. namespace MOF_NODESETTINGPORTRULE
  107. {
  108. LPWSTR szName = MOF_CLASSES::g_szMOFClassList[MOF_CLASSES::NODESETPR];
  109. LPWSTR pProperties[] = { MOF_NODESETTINGPORTRULE_PROPERTY_LIST };
  110. DWORD NumProperties = sizeof(pProperties)/sizeof(LPWSTR);
  111. };
  112. //MOF_CLUSCLUSSETTING namespace initialization
  113. namespace MOF_CLUSCLUSSETTING
  114. {
  115. LPWSTR szName = MOF_CLASSES::g_szMOFClassList[MOF_CLASSES::CLUSCLUSSET];
  116. LPWSTR pProperties[] = { MOF_CLUSCLUSSETTING_PROPERTY_LIST };
  117. DWORD NumProperties = sizeof(pProperties)/sizeof(LPWSTR);
  118. };
  119. //MOF_NODENODESETTING namespace initialization
  120. namespace MOF_NODENODESETTING
  121. {
  122. LPWSTR szName = MOF_CLASSES::g_szMOFClassList[MOF_CLASSES::NODENODESET];
  123. LPWSTR pProperties[] = { MOF_NODENODESETTING_PROPERTY_LIST };
  124. DWORD NumProperties = sizeof(pProperties)/sizeof(LPWSTR);
  125. };
  126. namespace MOF_PARAM
  127. {
  128. LPWSTR PORT_NUMBER = L"Port";
  129. LPWSTR HOST_ID = L"HostID";
  130. LPWSTR NUM_NODES = L"NumNodes";
  131. LPWSTR CLUSIP = L"ClusterIPAddress";
  132. LPWSTR CLUSNETMASK = L"ClusterNetworkMask";
  133. LPWSTR PASSW = L"Password";
  134. LPWSTR DEDIP = L"DedicatedIPAddress";
  135. LPWSTR DEDNETMASK = L"DedicatedNetworkMask";
  136. LPWSTR PORTRULE = L"PortRule";
  137. LPWSTR NODEPATH = L"Node";
  138. LPWSTR VIP = L"VirtualIpAddress";
  139. };