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.
|
|
<HTML> <HEAD> <META NAME="GENERATOR" Content="Microsoft Developer Studio"> <META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1"> <OBJECT ID=pchealth classid=CLSID:FC7D9E02-3F9E-11d3-93C0-00C04F72DAF7></OBJECT> <TITLE>Connection Test</TITLE> </HEAD>
<BODY> <SCRIPT LANGUAGE=javascript> <!--
function Print( line ) { out.innerHTML = out.innerHTML + line + "<BR>"; }
function button_exec() {
var strPrefix = new Array( 'Scheme HTTP ', 'Scheme HTTP ', 'Scheme HCP ', 'Scheme FTP ', 'Scheme MS-ITS ' );
var strArray = new Array( 'http://www.microsoft.com', 'http://www.junkmicrosoft.com', 'hcp://system/test5_connection.htm', 'ftp://ftp.test.org', 'ms-its:d:\windows\help\windows.chm::/app_system_restore_process.htm' );
var numArray = 4 ;
Print('PCHealth Connection class testing');
if ( pchealth.Connectivity.NetworkAlive() ) { Print('Network Alive'); } else Print('Network not alive');
Print('Testing DestinationReachable URLs');
for ( i = 0 ; i < numArray ; i++ ) { if ( pchealth.Connectivity.DestinationReachable(strArray[i]) ) { Print(strPrefix[i] + strArray[i] + ' reached'); } else Print(strPrefix[i] + strArray[i] + ' not reached'); }
Print('End of testing<br><br><br>'); }
//--> </SCRIPT>
<INPUT type="button" value="Start" onClick="button_exec();">
<DIV ID=out></DIV>
</BODY> </HTML>
|