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.

35 lines
988 B

  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 Properties As SWbemPropertySet
  20. Set Properties = GetObject("winmgmts:").Get().Properties_
  21. Properties.Add("p1", wbemCimtypeBoolean).Value = True
  22. Properties.Add("p2", wbemCimtypeReal32).Value = 1.278368
  23. Properties.Add("p3", wbemCimtypeSint32).Value = -1289
  24. Dim P As SWbemProperty
  25. Dim PP As SWbemProperty
  26. For Each P In Properties
  27. Debug.Print P.Name, "=", P.Value
  28. For Each PP In Properties
  29. Debug.Print PP.Name, PP.CIMType
  30. Next
  31. Next
  32. End Sub