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.

21 lines
354 B

  1. Option Explicit
  2. Main
  3. Sub Main
  4. Dim oClusApp
  5. Dim oCluster
  6. Dim oParent
  7. Set oClusApp = CreateObject("MSCluster.ClusApplication")
  8. Set oCluster = oClusApp.OpenCluster("10.0.0.1")
  9. Set oParent = oCluster.Parent
  10. MsgBox "Parent's Name is " & oParent.Name
  11. if oParent = oCluster then
  12. MsgBox "Parent is Cluster."
  13. end if
  14. End Sub