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.
 
 
 
 
 
 

62 lines
1.0 KiB

<HTML>
<HEAD>
<!--
Copyright (c) 2000 Microsoft Corporation
-->
<OBJECT ID=pchealth classid=CLSID:FC7D9E02-3F9E-11d3-93C0-00C04F72DAF7></OBJECT>
<SCRIPT LANGUAGE=JavaScript>
var cm = null;
function StartPrinting()
{
cm = pchealth.CreateObject_PrintEngine();
cm.AddTopic( "hcp://system/dummy.htm" );
cm.AddTopic( "hcp://system/dummy2.htm" );
cm.AddTopic( "hcp://system/forums.htm" );
cm.onComplete = onComplete;
cm.onProgress = onProgress;
cm.Start();
}
function AbortPrinting()
{
if(cm)
{
cm.Abort();
cm = null;
}
}
function onProgress( pchpe, url, done, total )
{
idOutput.innerHTML += "Progress: " + done + "/" + total + "<BR>";
// if(done == 1) pchpe.Abort();
// debugger;
}
function onComplete( pchpe, hr )
{
idOutput.innerHTML += "Done: " + hr + "<BR>";
}
</SCRIPT>
</HEAD>
<BODY>
<BUTTON onClick="StartPrinting();">Start</BUTTON>
<BUTTON onClick="AbortPrinting();">Abort</BUTTON><BR>
<DIV id=idOutput ALIGN=center VALIGN=middle></DIV>
</BODY>
</HTML>