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.

51 lines
992 B

  1. var g_RemoteObj;
  2. // CLSID = {854c316d-c854-4a77-b189-606859e4391b}
  3. try
  4. {
  5. g_RemoteObj = new ActiveXObject('Lyle.Object', 'lylec2');
  6. // g_RemoteObj.OnScriptNotify = OnRemoteExecHandler;
  7. g_RemoteObj.Exec('connect', "Bunch'O'Params");
  8. // Hang around waiting for the event to be fired.
  9. g_RemoteObj.Exec('sleep', 10);
  10. }
  11. catch(ex)
  12. {
  13. var i;
  14. WScript.Echo('\nAn error occurred: \n');
  15. for (i in ex)
  16. {
  17. if (typeof(ex[i]) == 'number')
  18. {
  19. var value = ex[i];
  20. if (value < 0)
  21. {
  22. value = value + 0x100000000;
  23. }
  24. WScript.Echo('\t' + i + ': ' + ex[i] + ' (' + value.toString(16) + ')');
  25. }
  26. else
  27. {
  28. WScript.Echo('\t' + i + ': ' + ex[i]);
  29. }
  30. }
  31. }
  32. WScript.Echo('\n');
  33. function OnRemoteExecHandler(info, param)
  34. {
  35. WScript.Echo('Got OnRemoteExec! info='+info+', param='+param);
  36. }