windows-nt/Source/XPSP1/NT/base/ntsetup/oobe/html/msnsetup/mlan.htm

148 lines
5.4 KiB
HTML
Raw Normal View History

2020-09-26 03:20:57 -05:00
<html>
<head>
<link rel="stylesheet" type="text/css" href="mmsobshe.css">
<object ID="msnSetup" CLASSID="CLSID:34C9990F-CBD7-11D2-AE0E-00C04FAEA83F" style="display:none:width:0px;height:0px" viewastext></object>
<script language="Javascript">
var ERR_COMM_NO_ERROR = 0;
var ERR_COMM_OOBE_COMP_MISSING = 1;
var ERR_COMM_UNKNOWN = 2; // Unknow error, check input parameters
var ERR_COMM_NOMODEM = 3; // There is no modem installed
var ERR_COMM_RAS_TCP_NOTINSTALL = 4;
var nResult;
var ApiObj;
var HKEY_LOCAL_MACHINE = 0x80000002;
var OOBE_MAIN_REG_KEY = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Setup\\OOBE";
var Flag = 0;
var INSTALL_MODEM = 1;
var INSTALL_OE = 2;
var MAKE_SPACE = 3;
var INSTALL_DUNTCP = 4;
function DoLoad(){
window.parent.InitButtons();
btnNext.disabled = false;
var sLcid;
var ApiObj;
var sPath;
var sResult;
var giIntervalID;
if (null == ApiObj)
{
ApiObj = new Object;
ApiObj = window.external.API;
}
sLcid = ApiObj.get_UserDefaultLCID();
sPath = ApiObj.get_SystemDirectory();
sPath = sPath + "\\OOBE\\msobe.isp";
/* not needed if using the external.connect function */
//sValue = ApiObj.get_INIKey( sPath, "URL", "Signup");
//sValue = sValue + "LAN_CONFIGaURE=1&LCID=" + sLcid;
//Lan=1
window.external.API.set_RegValue(HKEY_LOCAL_MACHINE,"SOFTWARE\\Microsoft\\MSN","LanSetup", "1");
sResult = window.external.Connect(sPath);
giIntervalID = window.setTimeout("SetErrorText()",10000);
}
function SetErrorText(){
var L_strTitleText_Text = "Could not connect to MSN via LAN";
Start_TITLE1.innerHTML = L_strTitleText_Text;
var L_strErrorText_Text = 'An error occurred while trying to connect to MSN. <br><br>This is possibly caused by improper LAN connection settings.<br>To access and modify those settings, click on <b>Start</b> and <br>select Settings/Control Panel, then double-click on Internet Properties, <br>select the Connections tab at the top of the dialog,<br> and click on the <b>LAN Settings...</b> button.<br><br><br>Once you have changed the settings,<br> click on the <b>Next</b> button on this page to try connecting again.<br>';
errortxt.innerHTML = L_strErrorText_Text;
}
function CloseWindow(){
var L_strCloseWindow_Text ="Click OK to exit MSN Internet Access Setup.";
if (confirm(L_strCloseWindow_Text)){
window.external.Finish();
}
}
function MSNGoNext(){
var sLcid;
var ApiObj;
var sPath;
var sResult;
var giIntervalID;
//window.parent.external.RunManualICW();
if (null == ApiObj)
{
ApiObj = new Object;
ApiObj = window.external.API;
}
sLcid = ApiObj.get_UserDefaultLCID();
sPath = ApiObj.get_SystemDirectory();
sPath = sPath + "\\OOBE\\msobe.isp";
/* not needed if using the external.connect function */
//sValue = ApiObj.get_INIKey( sPath, "URL", "Signup");
//sValue = sValue + "LAN_CONFIGURE=1&LCID=" + sLcid;
sResult = window.external.Connect(sPath);
giIntervalID = window.setTimeout("SetErrorText()",10000);
}
</script>
</head>
<body TABINDEX="-1" background="../images/msnwtrmk.gif" onload="DoLoad();">
<img id="imgUpperLeftCorner" style="position:absolute;top:0px;left:0px;visibility:hidden" SRC="../images/MSNlogo.gif" width="80" height="43">
<script LANGUAGE="javascript">
<!--
function setImagePosition(oImg, szHorizontal, szVertical) {
// Position oImg image to absolute coordinates based on szVertical(upper, lower) and szHorizontal(left, right)
var x;
var y;
//alert('body:\nW: ' + document.body.offsetWidth + '\nH: ' + document.body.offsetHeight);
x = szHorizontal.toLowerCase() == 'left' ? 0 : document.body.clientWidth - oImg.width - 15;
y = szVertical.toLowerCase() == 'upper' ? 0 : document.body.clientHeight - oImg.height - 16;
oImg.style.left = x;
oImg.style.top = y;
//alert('X: ' + x + '\nY: ' + y);
oImg.style.visibility = 'visible';
}
setImagePosition( imgUpperLeftCorner, 'left', 'upper' );
//-->
</script>
<span TABINDEX="-1" class="pageTitle">
<div TABINDEX="-1" id="Start_TITLE1">LAN Configuration</div>
</span>
<span TABINDEX="-1" CLASS="contents">
<div id=errortxt>
<h4 ID="LAN_Connecting">Connecting...</h4>
<h4 ID="LAN_PleaseWait">Please Wait...</h4>
</div>
<br>
</span>
<span TABINDEX="-1" id="navbar" CLASS="navbar">
<HR NOSHADE CLASS="blackbar">
<span TABINDEX="-1" Id="spanCancel" onclick="CloseWindow();">
<img Id="btnCancel" class="cancelButton">
<label TABINDEX="1" ACCESSKEY="C" for="btnCancelText" Id="btnCancelText" class="cancelButtonText">
<id id="Lan_CANCEL"><u>C</u>ancel</id>
</label>
</span>
<span TABINDEX="-1" Id="spanBack" onclick="window.parent.GoBack();">
<img Id="btnBack" class="backButton">
<label TABINDEX="2" ACCESSKEY="B" for="btnBackText" Id="btnBackText" class="backButtonText">
<id id="LOCAL_BACK"><u>B</u>ack</id>
</label>
</span>
<span TABINDEX="-1" Id="spanNext" onclick="if (btnNext.disabled == false) MSNGoNext();">
<img Id="btnNext" class="nextButton">
<label TABINDEX="3" ACCESSKEY="N" for="btnNextText" Id="btnNextText" class="nextButtonText">
<id id="LOCAL_NEXT"><u>N</u>ext</id>
</label>
</span>
</span>
</body>
</html>