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.

53 lines
1.6 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. Begin VB.TextBox Text1
  13. Height = 975
  14. Left = 360
  15. TabIndex = 0
  16. Text = "Text1"
  17. Top = 840
  18. Width = 3255
  19. End
  20. End
  21. Attribute VB_Name = "Form1"
  22. Attribute VB_GlobalNameSpace = False
  23. Attribute VB_Creatable = False
  24. Attribute VB_PredeclaredId = True
  25. Attribute VB_Exposed = False
  26. Private Sub Form_Load()
  27. 'Dim Locator As Object
  28. 'Dim Service As Object
  29. 'Set Locator = CreateObject("WBEMIDispatchLocator")
  30. 'Locator.ConnectServer "root\default", vbNullString, vbNullString, "", 0, vbNullString, Nothing, Service
  31. 'Dim Class As DWbemClassObject
  32. 'Service.GetObject "B", 0, Nothing, Class, Nothing
  33. 'Dim Qualifiers As Object
  34. 'Class.GetQualifierSet Qualifiers
  35. 'Qualifiers.Put "aqstring", Array("fred", "the", "wibble"), 0
  36. 'Dim myArray() As String
  37. 'Qualifiers.GetNames 0, myArray
  38. 'Text1.Text = myArray(0)
  39. Dim Service As SWbemServices
  40. Set Service = GetObject("winmgmts://./root/default")
  41. Dim Class As SWbemObject
  42. Set Class = Service.Get
  43. Dim Qualifiers As SWbemQualifierSet
  44. Set Qualifiers = Class.Qualifiers_
  45. Qualifiers.Add "fred", Array("a", "b", "c")
  46. Dim QUalifier As SWbemQualifier
  47. For Each QUalifier In Qualifiers
  48. Debug.Print QUalifier.Name
  49. Next
  50. End Sub