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.

297 lines
8.1 KiB

  1. <html xmlns:v="urn:schemas-microsoft-com:vml"
  2. xmlns:o="urn:schemas-microsoft-com:office:office"
  3. xmlns:w="urn:schemas-microsoft-com:office:word"
  4. xmlns="http://www.w3.org/TR/REC-html40">
  5. <head>
  6. <meta http-equiv=Content-Type content="text/html; charset=us-ascii">
  7. <meta name=ProgId content=Word.Document>
  8. <meta name=Generator content="Microsoft Word 9">
  9. <meta name=Originator content="Microsoft Word 9">
  10. <link rel=File-List href="./valid_files/filelist.xml">
  11. <link rel=Edit-Time-Data href="./valid_files/editdata.mso">
  12. <!--[if !mso]>
  13. <style>
  14. v\:* {behavior:url(#default#VML);}
  15. o\:* {behavior:url(#default#VML);}
  16. w\:* {behavior:url(#default#VML);}
  17. .shape {behavior:url(#default#VML);}
  18. </style>
  19. <![endif]-->
  20. <title>Class FastCardProp</title>
  21. <!--[if gte mso 9]><xml>
  22. <o:DocumentProperties>
  23. <o:Author>Wmi Mof Checking Tool</o:Author>
  24. <o:Template>Normal</o:Template>
  25. <o:LastAuthor>Wmi Mof Checking Tool</o:LastAuthor>
  26. <o:Revision>2</o:Revision>
  27. <o:TotalTime>3</o:TotalTime>
  28. <o:Created>1999-09-10T01:09:00Z</o:Created>
  29. <o:LastSaved>1999-09-10T01:12:00Z</o:LastSaved>
  30. <o:Pages>1</o:Pages>
  31. <o:Words>51</o:Words>
  32. <o:Characters>292</o:Characters>
  33. <o:Company>Microsoft</o:Company>
  34. <o:Lines>2</o:Lines>
  35. <o:Paragraphs>1</o:Paragraphs>
  36. <o:CharactersWithSpaces>358</o:CharactersWithSpaces>
  37. <o:Version>9.2720</o:Version>
  38. </o:DocumentProperties>
  39. </xml><![endif]--><!--[if gte mso 9]><xml>
  40. <w:WordDocument>
  41. <w:Compatibility>
  42. <w:UseFELayout/>
  43. </w:Compatibility>
  44. </w:WordDocument>
  45. </xml><![endif]-->
  46. <style>
  47. <!--
  48. /* Font Definitions */
  49. @font-face
  50. {font-family:"MS Mincho";
  51. panose-1:2 2 6 9 4 2 5 8 3 4;
  52. mso-font-alt:"\FF2D\FF33 \660E\671D";
  53. mso-font-charset:128;
  54. mso-generic-font-family:roman;
  55. mso-font-format:other;
  56. mso-font-pitch:fixed;
  57. mso-font-signature:1 134676480 16 0 131072 0;}
  58. @font-face
  59. {font-family:"\@MS Mincho";
  60. panose-1:2 2 6 9 4 2 5 8 3 4;
  61. mso-font-charset:128;
  62. mso-generic-font-family:modern;
  63. mso-font-pitch:fixed;
  64. mso-font-signature:-1610612033 1757936891 16 0 131231 0;}
  65. /* Style Definitions */
  66. p.MsoNormal, li.MsoNormal, div.MsoNormal
  67. {mso-style-parent:"";
  68. margin:0in;
  69. margin-bottom:.0001pt;
  70. mso-pagination:widow-orphan;
  71. font-size:12.0pt;
  72. font-family:"Times New Roman";
  73. mso-fareast-font-family:"MS Mincho";}
  74. @page Section1
  75. {size:8.5in 11.0in;
  76. margin:1.0in 1.25in 1.0in 1.25in;
  77. mso-header-margin:.5in;
  78. mso-footer-margin:.5in;
  79. mso-paper-source:0;}
  80. div.Section1
  81. {page:Section1;}
  82. -->
  83. </style>
  84. <!--[if gte mso 9]><xml>
  85. <o:shapedefaults v:ext="edit" spidmax="1026"/>
  86. </xml><![endif]--><!--[if gte mso 9]><xml>
  87. <o:shapelayout v:ext="edit">
  88. <o:idmap v:ext="edit" data="1"/>
  89. </o:shapelayout></xml><![endif]-->
  90. </head>
  91. <body lang=EN-US style='tab-interval:.5in'>
  92. <div class=Section1>
  93. <h3>Class FastCardProp</h3>
  94. <div class=MsoNormal align=center style='text-align:center'>
  95. <hr size=2 width="100" align=center>
  96. </div>
  97. <form NAME=ClassForm>
  98. <p class=MsoNormal><span style='display:none;mso-hide:all'><script language="VBScript">
  99. <!--
  100. On Error Resume Next
  101. Dim Locator
  102. Dim Service
  103. Dim Collection
  104. Dim InstancePaths()
  105. Dim InstanceCount
  106. Dim CurrentInstanceIndex
  107. Set Locator = CreateObject("WbemScripting.SWbemLocator")
  108. ' Note that Locator.ConnectServer can be used to connect to remote computers
  109. Set Service = Locator.ConnectServer(, "root\wmi")
  110. Service.Security_.ImpersonationLevel=3
  111. Set Collection = Service.InstancesOf ("FastCardProp")
  112. InstanceCount = 0
  113. Err.Clear
  114. for each Instance in Collection
  115. if Err.Number = 0 Then
  116. InstanceCount = InstanceCount + 1
  117. ReDim Preserve InstancePaths(InstanceCount)
  118. Set ObjectPath = Instance.Path_
  119. InstancePaths(InstanceCount) = ObjectPath.Path
  120. End If
  121. next 'Instance
  122. if InstanceCount = 0 Then
  123. MsgBox "No instances available for this class"
  124. Else
  125. CurrentInstanceIndex = 1
  126. End if
  127. Sub ChangeButton_OnClick
  128. Set TheForm = Document.ClassForm
  129. if InstanceCount = 0 Then
  130. MsgBox "No instances available for this class"
  131. Else
  132. On Error Resume Next
  133. Err.Clear
  134. Set Instance = Service.Get(InstancePaths(CurrentInstanceIndex))
  135. if Err.Number = 0 Then
  136. Instance.DelayCardIntrrupt = TheForm.DelayCardIntrruptText.Value
  137. Instance.SwapRTSForDTR = TheForm.SwapRTSForDTRText.Value
  138. Err.Clear
  139. Instance.Put_()
  140. if Err.Number <> 0 Then
  141. MsgBox Err.Description, ,CurrentObjectPath
  142. End If
  143. Else
  144. MsgBox Err.Description, ,CurrentObjectPath
  145. End If
  146. End If
  147. End Sub
  148. Sub ReloadInstance
  149. Set TheForm = Document.ClassForm
  150. if InstanceCount = 0 Then
  151. TheForm.InstanceNameText.Value = "No Instances Available"
  152. Else
  153. On Error Resume Next
  154. Err.Clear
  155. Set Instance = Service.Get(InstancePaths(CurrentInstanceIndex))
  156. if Err.Number = 0 Then
  157. TheForm.InstanceNameText.Value = InstancePaths(CurrentInstanceIndex)
  158. TheForm.DelayCardIntrruptText.Value = Instance.DelayCardIntrrupt
  159. TheForm.SwapRTSForDTRText.Value = Instance.SwapRTSForDTR
  160. Else
  161. MsgBox Err.Description, ,CurrentObjectPath
  162. End If
  163. End If
  164. End Sub
  165. Sub RefreshButton_OnClick
  166. if InstanceCount = 0 Then
  167. MsgBox "No instances available for this class"
  168. Else
  169. call ReloadInstance
  170. End If
  171. End Sub
  172. Sub NextButton_OnClick
  173. if InstanceCount = 0 Then
  174. MsgBox "No instances available for this class"
  175. Else
  176. if CurrentInstanceIndex = InstanceCount Then
  177. CurrentInstanceIndex = 1
  178. Else
  179. CurrentInstanceIndex = CurrentInstanceIndex + 1
  180. End If
  181. call ReloadInstance
  182. End if
  183. End Sub
  184. Sub PrevButton_OnClick
  185. if InstanceCount = 0 Then
  186. MsgBox "No instances available for this class"
  187. Else
  188. if CurrentInstanceIndex = 1 Then
  189. CurrentInstanceIndex = InstanceCount
  190. Else
  191. CurrentInstanceIndex = CurrentInstanceIndex - 1
  192. End if
  193. call ReloadInstance
  194. End if
  195. End Sub
  196. Sub NextIndexButton_OnClick(ByRef Index, MaxIndex)
  197. if InstanceCount <> 0 Then
  198. Index = Index + 1
  199. if Index = MaxIndex Then
  200. Index = 0
  201. End If
  202. Call ReloadInstance
  203. End If
  204. End Sub
  205. Sub PrevIndexButton_OnClick(ByRef Index, MaxIndex)
  206. if InstanceCount <> 0 Then
  207. if Index = 0 Then
  208. Index = MaxIndex - 1
  209. Else
  210. Index = Index - 1
  211. End If
  212. Call ReloadInstance
  213. End If
  214. End Sub
  215. Sub GotoIndexButton_OnClick(ByRef Index, MaxIndex, NewIndex)
  216. if InstanceCount <> 0 Then
  217. DestIndex = NewIndex + 0
  218. if DestIndex >= 0 And DestIndex < MaxIndex Then
  219. Index = DestIndex
  220. Call ReloadInstance
  221. Else
  222. MsgBox "Enter an index between 0 and " & MaxIndex-1, ,"Index out of range"
  223. End If
  224. End If
  225. End Sub
  226. -->
  227. </script></span><INPUT TYPE="TEXT" SIZE="128" NAME="InstanceNameText" VALUE=""></p>
  228. <input name=NextButton type=BUTTON value=Next>
  229. <input name=PrevButton type=BUTTON value=Previous>
  230. <input name=ChangeButton type=BUTTON value=Change>
  231. <input name=RefreshButton type=BUTTON value=Refresh>
  232. <p class=MsoNormal><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></p>
  233. <p class=MsoNormal>DelayCardIntrrupt: <span style='mso-tab-count:2'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><INPUT TYPE="TEXT" SIZE="96" NAME="DelayCardIntrruptText"></p>
  234. <p class=MsoNormal>SwapRTSForDTR: <span style='mso-tab-count:2'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><INPUT TYPE="TEXT" SIZE="96" NAME="SwapRTSForDTRText"></p>
  235. <p class=MsoNormal><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></p>
  236. <p class=MsoNormal><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></p>
  237. <p class=MsoNormal><a href="index.htm"
  238. title="Goes back to list of classes in this MOF">Back to List</a></p>
  239. </form>
  240. <p class=MsoNormal><span style='display:none;mso-hide:all'><script language="VBScript">
  241. <!--
  242. call ReloadInstance
  243. -->
  244. </script></span></p>
  245. </div>
  246. </body>
  247. </html>