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.

73 lines
2.0 KiB

  1. VERSION 5.00
  2. Begin VB.Form Form1
  3. Caption = "Derivation Browser"
  4. ClientHeight = 5400
  5. ClientLeft = 60
  6. ClientTop = 345
  7. ClientWidth = 7305
  8. LinkTopic = "Form1"
  9. ScaleHeight = 5400
  10. ScaleWidth = 7305
  11. StartUpPosition = 3 'Windows Default
  12. Begin VB.CommandButton Button
  13. Caption = "OK"
  14. Default = -1 'True
  15. Height = 375
  16. Left = 2520
  17. TabIndex = 4
  18. Top = 1560
  19. Width = 2295
  20. End
  21. Begin VB.Frame Frame1
  22. Caption = "Derivation"
  23. Height = 2775
  24. Left = 480
  25. TabIndex = 2
  26. Top = 2160
  27. Width = 6255
  28. Begin VB.ListBox Derivation
  29. Enabled = 0 'False
  30. Height = 2010
  31. Left = 360
  32. TabIndex = 3
  33. Top = 360
  34. Width = 5655
  35. End
  36. End
  37. Begin VB.Frame Object
  38. Caption = "Object"
  39. Height = 975
  40. Left = 480
  41. TabIndex = 0
  42. Top = 360
  43. Width = 6255
  44. Begin VB.TextBox ObjectPath
  45. Height = 495
  46. Left = 240
  47. TabIndex = 1
  48. Text = "Win32_LogicalDisk"
  49. Top = 360
  50. Width = 5775
  51. End
  52. End
  53. End
  54. Attribute VB_Name = "Form1"
  55. Attribute VB_GlobalNameSpace = False
  56. Attribute VB_Creatable = False
  57. Attribute VB_PredeclaredId = True
  58. Attribute VB_Exposed = False
  59. Private Sub Button_Click()
  60. Derivation.Clear
  61. Dim Disk As SWbemObject
  62. Set Disk = GetObject("winmgmts:" & ObjectPath.Text)
  63. Dim D As Variant
  64. D = Disk.Derivation_
  65. Dim V As String
  66. For x = LBound(D) To UBound(D)
  67. Derivation.AddItem (D(x))
  68. Next
  69. End Sub