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.

14 lines
322 B

  1. Dim s
  2. Dim sink
  3. Sub MYSINK_OnCompleted(iHResult, objErrorObject, objAsyncContext)
  4. WScript.Echo "Done"
  5. End Sub
  6. Set locator = CreateObject("WbemScripting.SWbemLocator")
  7. Set sink = WScript.CreateObject("WbemScripting.SWbemSink", "MYSINK_")
  8. locator.OpenAsync sink, "umi://./winnt"
  9. WScript.Echo "Hanging"