Source code of Windows XP (NT5)
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.

147 lines
5.4 KiB

  1. <html>
  2. <head>
  3. <link rel="stylesheet" type="text/css" href="mmsobshe.css">
  4. <object ID="msnSetup" CLASSID="CLSID:34C9990F-CBD7-11D2-AE0E-00C04FAEA83F" style="display:none:width:0px;height:0px" viewastext></object>
  5. <script language="Javascript">
  6. var ERR_COMM_NO_ERROR = 0;
  7. var ERR_COMM_OOBE_COMP_MISSING = 1;
  8. var ERR_COMM_UNKNOWN = 2; // Unknow error, check input parameters
  9. var ERR_COMM_NOMODEM = 3; // There is no modem installed
  10. var ERR_COMM_RAS_TCP_NOTINSTALL = 4;
  11. var nResult;
  12. var ApiObj;
  13. var HKEY_LOCAL_MACHINE = 0x80000002;
  14. var OOBE_MAIN_REG_KEY = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Setup\\OOBE";
  15. var Flag = 0;
  16. var INSTALL_MODEM = 1;
  17. var INSTALL_OE = 2;
  18. var MAKE_SPACE = 3;
  19. var INSTALL_DUNTCP = 4;
  20. function DoLoad(){
  21. window.parent.InitButtons();
  22. btnNext.disabled = false;
  23. var sLcid;
  24. var ApiObj;
  25. var sPath;
  26. var sResult;
  27. var giIntervalID;
  28. if (null == ApiObj)
  29. {
  30. ApiObj = new Object;
  31. ApiObj = window.external.API;
  32. }
  33. sLcid = ApiObj.get_UserDefaultLCID();
  34. sPath = ApiObj.get_SystemDirectory();
  35. sPath = sPath + "\\OOBE\\msobe.isp";
  36. /* not needed if using the external.connect function */
  37. //sValue = ApiObj.get_INIKey( sPath, "URL", "Signup");
  38. //sValue = sValue + "LAN_CONFIGaURE=1&LCID=" + sLcid;
  39. //Lan=1
  40. window.external.API.set_RegValue(HKEY_LOCAL_MACHINE,"SOFTWARE\\Microsoft\\MSN","LanSetup", "1");
  41. sResult = window.external.Connect(sPath);
  42. giIntervalID = window.setTimeout("SetErrorText()",10000);
  43. }
  44. function SetErrorText(){
  45. var L_strTitleText_Text = "Could not connect to MSN via LAN";
  46. Start_TITLE1.innerHTML = L_strTitleText_Text;
  47. 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>';
  48. errortxt.innerHTML = L_strErrorText_Text;
  49. }
  50. function CloseWindow(){
  51. var L_strCloseWindow_Text ="Click OK to exit MSN Internet Access Setup.";
  52. if (confirm(L_strCloseWindow_Text)){
  53. window.external.Finish();
  54. }
  55. }
  56. function MSNGoNext(){
  57. var sLcid;
  58. var ApiObj;
  59. var sPath;
  60. var sResult;
  61. var giIntervalID;
  62. //window.parent.external.RunManualICW();
  63. if (null == ApiObj)
  64. {
  65. ApiObj = new Object;
  66. ApiObj = window.external.API;
  67. }
  68. sLcid = ApiObj.get_UserDefaultLCID();
  69. sPath = ApiObj.get_SystemDirectory();
  70. sPath = sPath + "\\OOBE\\msobe.isp";
  71. /* not needed if using the external.connect function */
  72. //sValue = ApiObj.get_INIKey( sPath, "URL", "Signup");
  73. //sValue = sValue + "LAN_CONFIGURE=1&LCID=" + sLcid;
  74. sResult = window.external.Connect(sPath);
  75. giIntervalID = window.setTimeout("SetErrorText()",10000);
  76. }
  77. </script>
  78. </head>
  79. <body TABINDEX="-1" background="../images/msnwtrmk.gif" onload="DoLoad();">
  80. <img id="imgUpperLeftCorner" style="position:absolute;top:0px;left:0px;visibility:hidden" SRC="../images/MSNlogo.gif" width="80" height="43">
  81. <script LANGUAGE="javascript">
  82. <!--
  83. function setImagePosition(oImg, szHorizontal, szVertical) {
  84. // Position oImg image to absolute coordinates based on szVertical(upper, lower) and szHorizontal(left, right)
  85. var x;
  86. var y;
  87. //alert('body:\nW: ' + document.body.offsetWidth + '\nH: ' + document.body.offsetHeight);
  88. x = szHorizontal.toLowerCase() == 'left' ? 0 : document.body.clientWidth - oImg.width - 15;
  89. y = szVertical.toLowerCase() == 'upper' ? 0 : document.body.clientHeight - oImg.height - 16;
  90. oImg.style.left = x;
  91. oImg.style.top = y;
  92. //alert('X: ' + x + '\nY: ' + y);
  93. oImg.style.visibility = 'visible';
  94. }
  95. setImagePosition( imgUpperLeftCorner, 'left', 'upper' );
  96. //-->
  97. </script>
  98. <span TABINDEX="-1" class="pageTitle">
  99. <div TABINDEX="-1" id="Start_TITLE1">LAN Configuration</div>
  100. </span>
  101. <span TABINDEX="-1" CLASS="contents">
  102. <div id=errortxt>
  103. <h4 ID="LAN_Connecting">Connecting...</h4>
  104. <h4 ID="LAN_PleaseWait">Please Wait...</h4>
  105. </div>
  106. <br>
  107. </span>
  108. <span TABINDEX="-1" id="navbar" CLASS="navbar">
  109. <HR NOSHADE CLASS="blackbar">
  110. <span TABINDEX="-1" Id="spanCancel" onclick="CloseWindow();">
  111. <img Id="btnCancel" class="cancelButton">
  112. <label TABINDEX="1" ACCESSKEY="C" for="btnCancelText" Id="btnCancelText" class="cancelButtonText">
  113. <id id="Lan_CANCEL"><u>C</u>ancel</id>
  114. </label>
  115. </span>
  116. <span TABINDEX="-1" Id="spanBack" onclick="window.parent.GoBack();">
  117. <img Id="btnBack" class="backButton">
  118. <label TABINDEX="2" ACCESSKEY="B" for="btnBackText" Id="btnBackText" class="backButtonText">
  119. <id id="LOCAL_BACK"><u>B</u>ack</id>
  120. </label>
  121. </span>
  122. <span TABINDEX="-1" Id="spanNext" onclick="if (btnNext.disabled == false) MSNGoNext();">
  123. <img Id="btnNext" class="nextButton">
  124. <label TABINDEX="3" ACCESSKEY="N" for="btnNextText" Id="btnNextText" class="nextButtonText">
  125. <id id="LOCAL_NEXT"><u>N</u>ext</id>
  126. </label>
  127. </span>
  128. </span>
  129. </body>
  130. </html>