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.

262 lines
8.3 KiB

  1. <HTML XMLNS:helpcenter>
  2. <HEAD>
  3. <!--
  4. Copyright (c) 2000 Microsoft Corporation
  5. -->
  6. <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=windows-1252">
  7. <META HTTP-EQUIV=PICS-Label CONTENT='(PICS-1.1 "http://www.rsac.org/ratingsv01.html" l comment "RSACi North America Server" by "[email protected]" r (n 0 s 0 v 0 l 0))'>
  8. <META HTTP-EQUIV="MSThemeCompatible" CONTENT="Yes">
  9. <OBJECT ID=pchealth classid=CLSID:FC7D9E02-3F9E-11d3-93C0-00C04F72DAF7></OBJECT>
  10. <LINK ID=Stylesheet_Ref0 href="hcp://system/css/shared.css" rel=STYLESHEET type=text/css>
  11. <LINK ID=Stylesheet_Ref1 href="hcp://system/css/Behaviors.css" rel=STYLESHEET type=text/css>
  12. <LINK ID=Stylesheet_Ref2 href="hcp://system/css/Layout.css" rel=STYLESHEET type=text/css>
  13. <XML id='xmlChannels'>
  14. <NODE NodeType='Frame1_Expand' Key='Top' Title='Support' URL='hcp://system/blurbs/isupport.htm'>
  15. <NODE NodeType='Expando_Link' Key='Channels' Title='' Description='' URL=''/>
  16. <!-- BETA only
  17. <NODE NodeType='Spacer' Key='Spacer1'/>
  18. <NODE NodeType='Expando_Link' Key='Bug' Title='Report a Bug' URL='hcp://CN=Microsoft%20Corporation,L=Redmond,S=Washington,C=US/bugrep.htm'/>
  19. -->
  20. </NODE>
  21. </XML>
  22. <XML id='xmlTools'>
  23. <NODE NodeType='Frame2' Key='Top' Title='See Also'>
  24. <NODE NodeType='Expando_Link' Key='Tools_About' Title='About Support' URL='hcp://system/blurbs/about_support.htm' Description='Read information about the Support page.'/>
  25. <NODE NodeType='Expando_Link' Key='Tools_MyComputer' Title='My Computer Information' URL='hcp://system/sysinfo/sysinfomain.htm' Description='Check what programs and hardware are installed on this computer, or the amount of memory available, or review diagnostic information about the health of your computer.'/>
  26. <NODE NodeType='Expando_Link' Key='Tools_SysInfo' Title='Advanced System Information' URL='hcp://system/sysinfo/sysInfoLaunch.htm' Description='Link to system information that you or a support professional might need to troubleshoot a problem or assess your computer&apos;s health.'/>
  27. <NODE NodeType='Expando_Link' Key='Tools_MSconfig' Title='System Configuration Utility' URL='hcp://system/sysinfo/sysConfigLaunch.htm' Description='Automate the routine troubleshooting steps that Microsoft support professionals use when diagnosing system configuration issues (Msconfig.exe).'/>
  28. </NODE>
  29. </XML>
  30. </HEAD>
  31. <BODY id=noloc0 tabindex=-1 class="sys-lhp-bgcolor" style="margin: 11px" scroll=no>
  32. <TABLE border=0 cellPadding=0 cellSpacing=0 WIDTH=100% HEIGHT=100% style="table-layout: fixed">
  33. <TR WIDTH=100%>
  34. <TD HEIGHT=100%>
  35. <helpcenter:tree id="idDisplay" target="HelpCtrContents" onSelect="tree_onSelect( true );"></helpcenter:tree>
  36. </TD>
  37. </TR>
  38. <TR id=idSeeAlso style="padding-top: 11px">
  39. <TD>
  40. <helpcenter:tree id="idDisplay2" target="HelpCtrContents" onSelect="tree_onSelect( false );"></helpcenter:tree>
  41. </TD>
  42. </TR>
  43. </TABLE>
  44. </BODY>
  45. <SCRIPT>
  46. var skip_MicrosoftAssistedSupport = "PSS Online Assisted Support"; // Need to put special instructions here
  47. var skip_MicrosoftWhistlerBeta = "Microsoft Whistler Beta";
  48. // Find out if the "Microsoft Assisted Support" Channel is required or not by reading the registry key
  49. var REG_MICROSOFT_CHANNEL_KEY = "HKLM\\SOFTWARE\\Microsoft\\PCHealth\\HelpCtr\\SAF\\Channels\\Microsoft\\Display";
  50. // Find out if this is a retail or an OEM build
  51. var REG_OEM_BUILD = "HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\ProductId";
  52. var g_lastHeight = 0;
  53. var g_timeout = null;
  54. channels_CheckSize();
  55. function tree_onSelect( flag )
  56. {
  57. if(flag) idDisplay2.Unselect();
  58. else idDisplay .Unselect();
  59. try
  60. {
  61. var node = event.srcElement.data;
  62. if(node && node.URL != "")
  63. {
  64. if(pchealth.HelpSession.IsNavigating() == false)
  65. {
  66. if(node.Title)
  67. {
  68. pchealth.HelpSession.SetTitle( node.URL, node.Title );
  69. }
  70. pchealth.UI_Contents.content.Navigate( node.URL, null, null, null, null );
  71. }
  72. }
  73. }
  74. catch(e)
  75. {
  76. }
  77. }
  78. function channels_ContextSwitch()
  79. {
  80. var ctx = pchealth.HelpSession.CurrentContext;
  81. if(ctx.ContextName == "CHANNELS")
  82. {
  83. var oXML = xmlChannels.cloneNode( true );
  84. var oRoot = oXML.documentElement;
  85. var oTemplate = oRoot.selectSingleNode( "//NODE[@Key=\"Channels\"]" );
  86. var fPSSEnabled = true;
  87. var objChannels // A collection of channels
  88. var strVendorName; // String variable that holds the vendor name
  89. var strProductID; // String variable that holds the product ID
  90. var strURL; // String variable that holds the URL
  91. var strKey; // String variable that contains the key - is a concatenation of "Channels" & strVendorName & strProductID
  92. try
  93. {
  94. var strRegVal = pchealth.RegRead( REG_OEM_BUILD );
  95. if(strRegVal.match( /-OEM-/i ))
  96. {
  97. fPSSEnabled = false;
  98. }
  99. }
  100. catch (e)
  101. {
  102. }
  103. try
  104. {
  105. var dwRegVal = pchealth.RegRead( REG_MICROSOFT_CHANNEL_KEY );
  106. if(dwRegVal == 1)
  107. {
  108. fPSSEnabled = true;
  109. }
  110. }
  111. catch (e)
  112. {
  113. }
  114. // Enumerate thro the channels and generate the XML dynamically
  115. objChannels = pchealth.Channels;
  116. objChannels.MoveFirst();
  117. while(objChannels.EOF == false)
  118. {
  119. var strVendorName = objChannels.VendorName;
  120. var strVendorID = objChannels.VendorID;
  121. var strProductID = objChannels.ProductID;
  122. var strKey = "Channels\\" + strVendorID + "\\" + strProductID;
  123. var fSkip = false;
  124. // If ProductID is "Microsoft Assisted Support" then store the information so that it can be displayed as the last channel
  125. if(strProductID == skip_MicrosoftAssistedSupport && fPSSEnabled == false) fSkip = true;
  126. if(strProductID == skip_MicrosoftWhistlerBeta ) fSkip = true;
  127. if(fSkip == false)
  128. {
  129. var oNode = oTemplate.cloneNode( true );
  130. oNode.attributes.getNamedItem( "Key" ).nodeValue = strKey;
  131. oNode.attributes.getNamedItem( "Title" ).nodeValue = objChannels.ProductName;
  132. oNode.attributes.getNamedItem( "URL" ).nodeValue = objChannels.SupportUrl;
  133. oNode.attributes.getNamedItem( "Description" ).nodeValue = objChannels.ProductDescription;
  134. oTemplate.parentNode.insertBefore( oNode, oTemplate );
  135. }
  136. objChannels.MoveNext();
  137. }
  138. oTemplate.parentNode.removeChild( oTemplate );
  139. idDisplay .Populate( oRoot );
  140. idDisplay2.Populate( xmlTools.documentElement );
  141. }
  142. }
  143. function channels_PersistLoad()
  144. {
  145. var dataSer = idState.stateProperty( "dataser" );
  146. if(dataSer)
  147. {
  148. idDisplay.Load( dataSer );
  149. }
  150. }
  151. function channels_TravelDone()
  152. {
  153. var dataSer;
  154. try
  155. {
  156. dataSer = idDisplay.Save();
  157. }
  158. catch(e)
  159. {
  160. dataSer = null;
  161. }
  162. idState.stateProperty( "dataser" ) = dataSer;
  163. }
  164. function channels_CheckSize()
  165. {
  166. var fState;
  167. if(pchealth.UI_Context.height == 0)
  168. {
  169. channels_CheckSizeDelayed( true );
  170. return; // Too early.
  171. }
  172. if(idSeeAlso.style.display == "")
  173. {
  174. g_lastHeight = idSeeAlso.scrollHeight;
  175. }
  176. fState = (g_lastHeight < pchealth.UI_Context.height * 0.5);
  177. idSeeAlso.style.display = fState ? "" : "none";
  178. }
  179. function channels_CheckSizeDelayed( fSet )
  180. {
  181. if(g_timeout != null)
  182. {
  183. window.clearTimeout( g_timeout );
  184. g_timeout = null;
  185. }
  186. if(fSet)
  187. {
  188. g_timeout = window.setTimeout( channels_CheckSize, 10 );
  189. }
  190. }
  191. function window::onunload()
  192. {
  193. channels_CheckSizeDelayed( false );
  194. }
  195. function window::onresize()
  196. {
  197. channels_CheckSize();
  198. }
  199. </SCRIPT>
  200. <helpcenter:events id=idEvents onContextSwitch="channels_ContextSwitch();" onPersistLoad="channels_PersistLoad();" onTravelDone="channels_TravelDone();"
  201. onOptionsChanged="channels_CheckSize()" onCssChanged="channels_CheckSize()" />
  202. <helpcenter:state id=idState identity="Channels" />
  203. </HTML>