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.

43 lines
989 B

  1. Option Explicit
  2. Main
  3. Sub Main
  4. Dim oCluster
  5. Dim oClusterResGroups
  6. Dim nCount
  7. Dim oClusResGroup
  8. Dim oCommonProps
  9. Dim e
  10. Dim nPropCount
  11. Dim f
  12. Dim sCluster
  13. Set oCluster = CreateObject("MSCluster.Cluster")
  14. sCluster = InputBox( "Cluster to open?" )
  15. oCluster.Open( sCluster )
  16. MsgBox "Cluster Name is " & oCluster.Name
  17. MsgBox "Cluster Version is " & oCluster.Version.BuildNumber
  18. Set oClusterResGroups = oCluster.ResourceGroups
  19. nCount = oClusterResGroups.Count
  20. MsgBox "Group count is " & nCount
  21. for e = 1 to nCount
  22. set oClusResGroup = oClusterResGroups.Item(e)
  23. MsgBox "Group name is '" & oClusResGroup.Name & "'"
  24. set oCommonProps = oClusResGroup.CommonProperties
  25. nPropCount = oCommonProps.Count
  26. MsgBox "Group common property count is " & nPropCount
  27. for f = 1 to nPropCount
  28. MsgBox "Property name is '" & oCommonProps.Item(f).Name & "' property value is: '" & oCommonProps.Item(f).Value & "'"
  29. next
  30. next
  31. End Sub