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.

50 lines
1.2 KiB

  1. VERSION 5.00
  2. Begin VB.Form Form1
  3. Caption = "Form1"
  4. ClientHeight = 3195
  5. ClientLeft = 60
  6. ClientTop = 345
  7. ClientWidth = 4680
  8. LinkTopic = "Form1"
  9. ScaleHeight = 3195
  10. ScaleWidth = 4680
  11. StartUpPosition = 3 'Windows Default
  12. End
  13. Attribute VB_Name = "Form1"
  14. Attribute VB_GlobalNameSpace = False
  15. Attribute VB_Creatable = False
  16. Attribute VB_PredeclaredId = True
  17. Attribute VB_Exposed = False
  18. Private Sub Form_Load()
  19. Dim Qualset As SWbemQualifierSet
  20. Set Qualset = GetObject("winmgmts:").Get().Qualifiers_
  21. Qualset.Add "q1", True
  22. Qualset.Add "q2", Array(1, 2, 3)
  23. Qualset.Add "q3", -2.33
  24. Dim Q As SWbemQualifier
  25. Dim QQ As SWbemQualifier
  26. For Each Q In Qualset
  27. If IsArray(Q.Value) Then
  28. Dim str As String
  29. str = Q.Name & "= {"
  30. For x = LBound(Q.Value) To UBound(Q.Value)
  31. str = str & Q.Value(x)
  32. If x < UBound(Q.Value) Then
  33. str = str & ","
  34. Else
  35. str = str & "}"
  36. End If
  37. Next x
  38. Debug.Print str
  39. Else
  40. Debug.Print Q.Name, "=", Q.Value
  41. End If
  42. For Each QQ In Qualset
  43. Debug.Print QQ.Name
  44. Next
  45. Next
  46. End Sub