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.

75 lines
1.6 KiB

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML>
  2. <HEAD>
  3. <META http-equiv=Content-Type content="text/html; charset=unicode"><!-- // let's include the PC Health object here -->
  4. <OBJECT id=pchealth classid=CLSID:FC7D9E02-3F9E-11d3-93C0-00C04F72DAF7></OBJECT>
  5. <SCRIPT LANG="JScript" SRC="safbvt_utility.js">
  6. </SCRIPT>
  7. <META content="MSHTML 6.00.2410.0" name=GENERATOR>
  8. </HEAD>
  9. <BODY>
  10. <P><INPUT type=button value=Button onclick=Go()></P></BODY>
  11. <SCRIPT LANGUAGE="Javascript">
  12. function Go()
  13. {
  14. var myChannel;
  15. var szGUID = "";
  16. var incident;
  17. var display, url, progress, XMLDataFile;
  18. display = "display1";
  19. url = "url1";
  20. progress = "progress1";
  21. XMLDataFile = "XMLDataFile1";
  22. try
  23. {
  24. myChannel = pchealth.CreateObject_channel("CN=Microsoft Corporation,L=Redmond,S=Washington,C=US", "Microsoft Remote Assistance");
  25. alert("Created Channel!");
  26. alert("Setting 1-8 GUID!");
  27. myChannel.Notification = "{354252FF-F707-4507-9B9C-2F5D6DA62C69}";
  28. alert("Set Notification!");
  29. alert("Creating incident!");
  30. incident = myChannel.RecordIncident(display, url, progress, XMLDataFile);
  31. alert("CREATED incident, should have gotten notification!");
  32. alert("Modifying the Progress property!");
  33. incident.Progress = "Test";
  34. alert("Modified incident, should have gotten notification!");
  35. alert("Removing the incident!");
  36. incident.DeleteIncidentItem();
  37. alert("Deleted incident, should have gotten a deleted and a updated");
  38. }
  39. catch (e)
  40. {
  41. alert(e.description);
  42. }
  43. return true;
  44. }
  45. </SCRIPT>
  46. </HTML>