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.

25 lines
540 B

  1. Option Explicit
  2. Main
  3. Sub Main
  4. Dim oCluster
  5. Dim oResource
  6. Dim bPending
  7. Dim sCluster
  8. Set oCluster = CreateObject("MSCluster.Cluster")
  9. sCluster = InputBox( "Cluster to open?" )
  10. oCluster.Open( sCluster )
  11. MsgBox "Cluster Name is " & oCluster.Name
  12. MsgBox "Cluster Version is " & oCluster.Version.BuildNumber
  13. MsgBox "Cluster resource count is " & oCluster.Resources.Count
  14. Set oResource = oCluster.Resources.Item("Dummy")
  15. bpending = oResource.Offline(30)
  16. MsgBox "bPending is " & bPending
  17. End Sub