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.

55 lines
1.5 KiB

  1. VERSION 5.00
  2. Begin VB.Form Form1
  3. Caption = "Form1"
  4. ClientHeight = 8280
  5. ClientLeft = 60
  6. ClientTop = 345
  7. ClientWidth = 9975
  8. LinkTopic = "Form1"
  9. ScaleHeight = 8280
  10. ScaleWidth = 9975
  11. StartUpPosition = 3 'Windows Default
  12. Begin VB.Frame Frame3
  13. Caption = "Frame1"
  14. Height = 1095
  15. Left = 480
  16. TabIndex = 2
  17. Top = 2280
  18. Width = 3975
  19. End
  20. Begin VB.Frame Frame2
  21. Caption = "Frame1"
  22. Height = 1095
  23. Left = 5040
  24. TabIndex = 1
  25. Top = 480
  26. Width = 3975
  27. End
  28. Begin VB.Frame Frame1
  29. Caption = "Frame1"
  30. Height = 1095
  31. Left = 240
  32. TabIndex = 0
  33. Top = 480
  34. Width = 3975
  35. End
  36. End
  37. Attribute VB_Name = "Form1"
  38. Attribute VB_GlobalNameSpace = False
  39. Attribute VB_Creatable = False
  40. Attribute VB_PredeclaredId = True
  41. Attribute VB_Exposed = False
  42. Private Sub Form_Load()
  43. Dim L As New WbemScripting.SWbemLocator
  44. Dim S As SWbemServices
  45. Set S = L.ConnectServer
  46. Dim e As SWbemObjectSet
  47. Set e = S.InstancesOf("win32_logicaldisk")
  48. MsgBox e.Count
  49. For Each Disk In S.ExecQuery("select * from Win32_logicaldisk")
  50. V = Disk.DeviceID
  51. Next
  52. End Sub