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.

143 lines
4.8 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_ParticipatingNode::Create,
  18. CWLBS_NodeSetPortRule::Create,
  19. CWLBS_ClusClusSetting::Create,
  20. CWLBS_NodeNodeSetting::Create
  21. };
  22. DWORD NumClasses = sizeof(g_szMOFClassList)/sizeof(LPWSTR);
  23. };
  24. //MOF_NODE namespace initialization
  25. namespace MOF_NODE
  26. {
  27. LPWSTR szName = MOF_CLASSES::g_szMOFClassList[MOF_CLASSES::NODE];
  28. LPWSTR pProperties[] = { MOF_NODE_PROPERTY_LIST };
  29. LPWSTR pMethods[] = { MOF_NODE_METHOD_LIST };
  30. DWORD NumProperties = sizeof(pProperties)/sizeof(LPWSTR);
  31. DWORD NumMethods = sizeof(pMethods)/sizeof(LPWSTR);
  32. };
  33. //MOF_CLUSTER namespace initialization
  34. namespace MOF_CLUSTER
  35. {
  36. LPWSTR szName = MOF_CLASSES::g_szMOFClassList[MOF_CLASSES::CLUSTER];
  37. LPWSTR pProperties[] = { MOF_CLUSTER_PROPERTY_LIST };
  38. LPWSTR pMethods[] = { MOF_CLUSTER_METHOD_LIST };
  39. DWORD NumProperties = sizeof(pProperties)/sizeof(LPWSTR);
  40. DWORD NumMethods = sizeof(pMethods)/sizeof(LPWSTR);
  41. };
  42. //MOF_CLUSTERSETTING namespace initialization
  43. namespace MOF_CLUSTERSETTING
  44. {
  45. LPWSTR szName = MOF_CLASSES::g_szMOFClassList[MOF_CLASSES::CLUSSET];
  46. LPWSTR pProperties[] = { MOF_CLUSTERSETTING_PROPERTY_LIST };
  47. LPWSTR pMethods[] = { MOF_CLUSTERSETTING_METHOD_LIST };
  48. DWORD NumProperties = sizeof(pProperties)/sizeof(LPWSTR);
  49. DWORD NumMethods = sizeof(pMethods)/sizeof(LPWSTR);
  50. };
  51. //MOF_NODESETTING namespace initialization
  52. namespace MOF_NODESETTING
  53. {
  54. LPWSTR szName = MOF_CLASSES::g_szMOFClassList[MOF_CLASSES::NODESET];
  55. LPWSTR pProperties[] = { MOF_NODESETTING_PROPERTY_LIST };
  56. LPWSTR pMethods[] = { MOF_NODESETTING_METHOD_LIST };
  57. DWORD NumProperties = sizeof(pProperties)/sizeof(LPWSTR);
  58. DWORD NumMethods = sizeof(pMethods)/sizeof(LPWSTR);
  59. };
  60. //MOF_PORTRULE namespace initialization
  61. namespace MOF_PORTRULE
  62. {
  63. LPWSTR szName = MOF_CLASSES::g_szMOFClassList[MOF_CLASSES::PORTRULE];
  64. LPWSTR pProperties[] = { MOF_PORTRULE_PROPERTY_LIST };
  65. LPWSTR pMethods[] = { MOF_PORTRULE_METHOD_LIST };
  66. DWORD NumProperties = sizeof(pProperties)/sizeof(LPWSTR);
  67. DWORD NumMethods = sizeof(pMethods)/sizeof(LPWSTR);
  68. };
  69. //MOF_PRFAIL namespace initialization
  70. namespace MOF_PRFAIL
  71. {
  72. LPWSTR szName = MOF_CLASSES::g_szMOFClassList[MOF_CLASSES::PRFAIL];
  73. LPWSTR pProperties[] = { MOF_PRFAIL_PROPERTY_LIST };
  74. DWORD NumProperties = sizeof(pProperties)/sizeof(LPWSTR);
  75. };
  76. //MOF_PRLOADBAL namespace initialization
  77. namespace MOF_PRLOADBAL
  78. {
  79. LPWSTR szName = MOF_CLASSES::g_szMOFClassList[MOF_CLASSES::PRLOADB];
  80. LPWSTR pProperties[] = { MOF_PRLOADBAL_PROPERTY_LIST };
  81. DWORD NumProperties = sizeof(pProperties)/sizeof(LPWSTR);
  82. };
  83. //MOF_PRDIS namespace initialization
  84. namespace MOF_PRDIS
  85. {
  86. LPWSTR szName = MOF_CLASSES::g_szMOFClassList[MOF_CLASSES::PRDIS];
  87. };
  88. //MOF_PARTICIPATINGNODE namespace initialization
  89. namespace MOF_PARTICIPATINGNODE
  90. {
  91. LPWSTR szName = MOF_CLASSES::g_szMOFClassList[MOF_CLASSES::PARTNODE];
  92. LPWSTR pProperties[] = { MOF_PARTICIPATINGNODE_PROPERTY_LIST };
  93. DWORD NumProperties = sizeof(pProperties)/sizeof(LPWSTR);
  94. };
  95. //MOF_NODESETTINGPORTRULE namespace initialization
  96. namespace MOF_NODESETTINGPORTRULE
  97. {
  98. LPWSTR szName = MOF_CLASSES::g_szMOFClassList[MOF_CLASSES::NODESETPR];
  99. LPWSTR pProperties[] = { MOF_NODESETTINGPORTRULE_PROPERTY_LIST };
  100. DWORD NumProperties = sizeof(pProperties)/sizeof(LPWSTR);
  101. };
  102. //MOF_CLUSCLUSSETTING namespace initialization
  103. namespace MOF_CLUSCLUSSETTING
  104. {
  105. LPWSTR szName = MOF_CLASSES::g_szMOFClassList[MOF_CLASSES::CLUSCLUSSET];
  106. LPWSTR pProperties[] = { MOF_CLUSCLUSSETTING_PROPERTY_LIST };
  107. DWORD NumProperties = sizeof(pProperties)/sizeof(LPWSTR);
  108. };
  109. //MOF_NODENODESETTING namespace initialization
  110. namespace MOF_NODENODESETTING
  111. {
  112. LPWSTR szName = MOF_CLASSES::g_szMOFClassList[MOF_CLASSES::NODENODESET];
  113. LPWSTR pProperties[] = { MOF_NODENODESETTING_PROPERTY_LIST };
  114. DWORD NumProperties = sizeof(pProperties)/sizeof(LPWSTR);
  115. };
  116. namespace MOF_PARAM
  117. {
  118. LPWSTR PORT_NUMBER = L"Port";
  119. LPWSTR HOST_ID = L"HostID";
  120. LPWSTR NUM_NODES = L"NumNodes";
  121. LPWSTR CLUSIP = L"ClusterIPAddress";
  122. LPWSTR CLUSNETMASK = L"ClusterNetworkMask";
  123. LPWSTR PASSW = L"Password";
  124. LPWSTR DEDIP = L"DedicatedIPAddress";
  125. LPWSTR DEDNETMASK = L"DedicatedNetworkMask";
  126. LPWSTR PORTRULE = L"PortRule";
  127. LPWSTR NODEPATH = L"Node";
  128. };