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.

30 lines
628 B

  1. Option Explicit
  2. Main
  3. Sub Main
  4. On Error Resume Next
  5. Dim oCluster
  6. Dim oTestRes
  7. Dim sCluster
  8. Set oCluster = CreateObject("MSCluster.Cluster")
  9. sCluster = InputBox( "Cluster to open?" )
  10. oCluster.Open( sCluster )
  11. Set oTestRes = oCluster.Resources.Item("Dummy")
  12. oTestRes.Delete()
  13. If Err.Number <> 0 Then
  14. If Err.Number = 424 Then
  15. MsgBox "Dummy resource does not exist!"
  16. Else
  17. MsgBox "Error return is " & Err.Number
  18. End If
  19. End If
  20. ' This will return "Invalid procedure call or argument" if the resource
  21. ' does not exist!
  22. End Sub