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.

37 lines
1.1 KiB

  1. On Error Resume Next
  2. while true
  3. Set Class = GetObject("winmgmts:root/cimv2:win32_service")
  4. 'Test the collection properties of IWbemMethodSet
  5. For each Method in Class.Methods_
  6. WScript.Echo "***************************"
  7. WScript.Echo "METHOD:", Method.Name, "from class", Method.Origin
  8. WScript.Echo
  9. WScript.Echo " Qualifiers:"
  10. for each Qualifier in Method.Qualifiers_
  11. WScript.Echo " ", Qualifier.Name, "=", Qualifier
  12. Next
  13. WScript.Echo
  14. WScript.Echo " In Parameters:"
  15. if (Method.InParameters <> NULL) Then
  16. for each InParameter in Method.InParameters.Properties_
  17. WScript.Echo " ", InParameter.Name, "<", InParameter.CIMType, ">"
  18. Next
  19. End If
  20. WScript.Echo
  21. WScript.Echo " Out Parameters"
  22. if (Method.OutParameters <> NULL) Then
  23. for each OutParameter in Method.OutParameters.Properties_
  24. WScript.Echo " ", OutParameter.Name, "<", OutParameter.CIMType, ">"
  25. Next
  26. End If
  27. WScript.Echo
  28. WScript.Echo
  29. Next
  30. 'Test the Item and Count properties of IWbemMethodSet
  31. WScript.Echo Class.Methods_("Create").Name
  32. WScript.Echo Class.Methods_.Count
  33. wend