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.

81 lines
1.9 KiB

  1. <HTML>
  2. <HEAD>
  3. <META NAME="GENERATOR" Content="Microsoft Developer Studio">
  4. <META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1">
  5. <OBJECT ID=pchealth classid=CLSID:FC7D9E02-3F9E-11d3-93C0-00C04F72DAF7></OBJECT>
  6. <TITLE>Document Title</TITLE>
  7. </HEAD>
  8. <BODY>
  9. <SCRIPT LANGUAGE=javascript>
  10. <!--
  11. var g_cb;
  12. function cb_onProgressFiles( cb, file, done, total )
  13. {
  14. Print( "onProgressFiles " + file + " " + done + "/" + total );
  15. Print( "Change = " + cb.Status );
  16. }
  17. function cb_onProgressBytes( cb, done, total )
  18. {
  19. Print( "onProgressBytes " + done + "/" + total );
  20. Print( "Change = " + cb.Status );
  21. }
  22. function cb_onComplete( cb, hr )
  23. {
  24. Print( "onComplete " + hr );
  25. Print( "Change = " + cb.Status );
  26. g_cb = null;
  27. }
  28. function Print( line )
  29. {
  30. out.innerHTML = out.innerHTML + line + "<BR>";
  31. }
  32. function button_exec()
  33. {
  34. // debugger;
  35. g_cb = pchealth.CreateObject_Cabinet();
  36. g_cb.AddFile( "c:\\winnt\\system32\\wshext.dll" );
  37. g_cb.AddFile( "c:\\winnt\\system32\\wshirda.dll" );
  38. g_cb.AddFile( "c:\\winnt\\system32\\wshisn.dll" );
  39. g_cb.AddFile( "c:\\winnt\\system32\\wshnetbs.dll", "CustomName1" );
  40. g_cb.AddFile( "c:\\winnt\\system32\\wsecedit.dll", "CustomName2" );
  41. g_cb.AddFile( "c:\\winnt\\system32\\win32k.sys" , "Custom\\Name3" );
  42. g_cb.onProgressFiles = cb_onProgressFiles;
  43. g_cb.onProgressBytes = cb_onProgressBytes;
  44. g_cb.onComplete = cb_onComplete;
  45. g_cb.Compress( "c:\\temp\\cabinet.cab" );
  46. }
  47. function button_abort()
  48. {
  49. if(g_cb != null)
  50. {
  51. g_cb.Abort();
  52. }
  53. }
  54. //-->
  55. </SCRIPT>
  56. <INPUT type="button" value="Start" onClick="button_exec();">&nbsp;
  57. <INPUT type="button" value="Abort" onClick="button_abort();"><P>
  58. <DIV ID=out></DIV>
  59. </BODY>
  60. </HTML>