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.

63 lines
1.7 KiB

  1. Sub Open( )
  2. Resource.LogInformation "Enter Open( )"
  3. Resource.LogInformation "Exit Open( )"
  4. End Sub
  5. Function Close( )
  6. Resource.LogInformation "Enter Close( )"
  7. Resource.LogInformation "Exit Close( )"
  8. End Function
  9. Function Online( )
  10. Resource.LogInformation "Enter Online( )"
  11. Resource.LogInformation "Exit Online( )"
  12. End Function
  13. Function Offline( )
  14. Resource.LogInformation "Enter Offline( )"
  15. Resource.LogInformation "Exit Offline( )"
  16. End Function
  17. Function Terminate( )
  18. Resource.LogInformation "Enter Terminate( )"
  19. Resource.LogInformation "Exit Terminate( )"
  20. End Function
  21. Function LooksAlive( )
  22. Dim randomnumber
  23. Dim FoobarText
  24. Dim dwordvalue
  25. Dim ClusterDir
  26. Resource.LogInformation "Enter LooksAlive( )"
  27. randomnumber = Int( 100 * Rnd )
  28. if randomnumber < 50 then
  29. LooksAlive = True
  30. Resource.LogInformation "Returing True"
  31. Else
  32. LooksAlive = False
  33. Resource.LogInformation "Returning False"
  34. End If
  35. FoobarText = Resource.Foobar
  36. dwordvalue = Resource.DwordValue
  37. ClusterDir = Resource.ExpandedString
  38. String1 = Resource.MultiSZ(0)
  39. String2 = Resource.MultiSZ(1)
  40. String3 = Resource.MultiSZ(2)
  41. Resource.LogInformation "Foobar Property: " & FoobarText
  42. Resource.LogInformation "DwordValue Property: " & dwordvalue
  43. Resource.LogInformation "ExpandedString Property: " & ClusterDir
  44. Resource.LogInformation "Exit LooksAlive( )"
  45. End Function
  46. Function IsAlive( )
  47. Resource.LogInformation "Enter IsAlive( )"
  48. IsAlive = True
  49. Resource.LogInformation "Exit IsAlive( )"
  50. End Function
  51. Open( )