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.

40 lines
1.3 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. Dim WithEvents sink As SWbemSink
  19. Attribute sink.VB_VarHelpID = -1
  20. Private Sub Form_Load()
  21. Dim l As New SWbemLocatorEx
  22. Set sink = New SWbemSink
  23. l.OpenAsync sink, "//./root/cimv2"
  24. End Sub
  25. Private Sub sink_OnCompleted(ByVal iHResult As WbemScripting.WbemErrorEnum, ByVal objWbemErrorObject As WbemScripting.ISWbemObject, ByVal objWbemAsyncContext As WbemScripting.ISWbemNamedValueSet)
  26. Debug.Print "done"
  27. End Sub
  28. Private Sub sink_OnConnectionReady(ByVal objWbemServices As WbemScripting.ISWbemServicesEx, ByVal objecWbemAsyncContext As WbemScripting.ISWbemNamedValueSetEx)
  29. Debug.Print "Hello"
  30. End Sub
  31. Private Sub sink_OnObjectReady(ByVal objWbemObject As WbemScripting.ISWbemObject, ByVal objWbemAsyncContext As WbemScripting.ISWbemNamedValueSet)
  32. Debug.Print "Goodbye"
  33. End Sub