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.

25 lines
1012 B

  1. option explicit
  2. dim CoCreateClsContexts, CoInitializeParams, i, j, doactivate, otherthread, paramstring, j2
  3. CoCreateClsContexts = Array(1, 2, 3, 4, 5, 6, 7)
  4. CoInitializeParams = Array(0, 2, 4, 8)
  5. for i = LBound(CoCreateClsContexts) to UBound(CoCreateClsContexts)
  6. for j = LBound(CoInitializeParams) to UBound(CoInitializeParams)
  7. for j2 = LBound(CoInitializeParams) to UBound(CoInitializeParams)
  8. for doactivate = 1 to 2
  9. for otherthread = 1 to 2
  10. paramstring = "famp.exe -clsidtocreate {B3F2B6A5-A79A-4202-AF40-8339DF42CAE4} "
  11. if (doactivate = 1) then paramstring = paramstring & " -activatebeforecreate "
  12. if (otherthread = 1) then paramstring = paramstring & " -createotherthread "
  13. paramstring = paramstring _
  14. & " -coinitparamformainthread " & CoInitializeParams(j) _
  15. & " -coinitparamforcreatedthread " & CoInitializeParams(j2) _
  16. & " -clsctx " & CoCreateClsContexts(i)
  17. WScript.Echo(paramstring)
  18. next
  19. next
  20. next
  21. next
  22. next