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.

28 lines
608 B

  1. Option Explicit
  2. Main
  3. Sub Main
  4. Dim oCluster
  5. Dim oCommonProperties
  6. Dim nCount
  7. Dim e
  8. Dim sCluster
  9. Set oCluster = CreateObject("MSCluster.Cluster")
  10. sCluster = InputBox( "Cluster to open?" )
  11. oCluster.Open( sCluster )
  12. MsgBox "Cluster Name is " & oCluster.Name
  13. MsgBox "Cluster Version is " & oCluster.Version.BuildNumber
  14. Set oCommonProperties = oCluster.CommonProperties
  15. nCount = oCommonProperties.Count
  16. MsgBox "Common property count is " & nCount
  17. for e = 1 to nCount
  18. MsgBox "Property name is " & oCommonProperties.Item(e).Name
  19. next
  20. End Sub