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.

294 lines
11 KiB

  1. <html xmlns:o="urn:schemas-microsoft-com:office:office"
  2. xmlns:w="urn:schemas-microsoft-com:office:word"
  3. xmlns="http://www.w3.org/TR/REC-html40">
  4. <head>
  5. <meta http-equiv=Content-Type content="text/html; charset=windows-1252">
  6. <meta name=ProgId content=Word.Document>
  7. <meta name=Generator content="Microsoft Word 10">
  8. <meta name=Originator content="Microsoft Word 10">
  9. <link rel=File-List href="bindview_files/filelist.xml">
  10. <title>Network Configuration/Installation Sample</title>
  11. <!--[if gte mso 9]><xml>
  12. <w:WordDocument>
  13. <w:SpellingState>Clean</w:SpellingState>
  14. <w:GrammarState>Clean</w:GrammarState>
  15. <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
  16. </w:WordDocument>
  17. </xml><![endif]-->
  18. <style>
  19. <!--
  20. /* Font Definitions */
  21. @font-face
  22. {font-family:Wingdings;
  23. panose-1:5 0 0 0 0 0 0 0 0 0;
  24. mso-font-charset:2;
  25. mso-generic-font-family:auto;
  26. mso-font-pitch:variable;
  27. mso-font-signature:0 268435456 0 0 -2147483648 0;}
  28. @font-face
  29. {font-family:"MS Sans Serif";
  30. panose-1:0 0 0 0 0 0 0 0 0 0;
  31. mso-font-charset:0;
  32. mso-generic-font-family:swiss;
  33. mso-font-format:other;
  34. mso-font-pitch:variable;
  35. mso-font-signature:3 0 0 0 1 0;}
  36. @font-face
  37. {font-family:Verdana;
  38. panose-1:2 11 6 4 3 5 4 4 2 4;
  39. mso-font-charset:0;
  40. mso-generic-font-family:swiss;
  41. mso-font-pitch:variable;
  42. mso-font-signature:536871559 0 0 0 415 0;}
  43. /* Style Definitions */
  44. p.MsoNormal, li.MsoNormal, div.MsoNormal
  45. {mso-style-parent:"";
  46. margin:0in;
  47. margin-bottom:.0001pt;
  48. mso-pagination:widow-orphan;
  49. font-size:12.0pt;
  50. font-family:"Times New Roman";
  51. mso-fareast-font-family:"Times New Roman";}
  52. h1
  53. {mso-style-next:Normal;
  54. margin:0in;
  55. margin-bottom:.0001pt;
  56. mso-pagination:widow-orphan;
  57. page-break-after:avoid;
  58. mso-outline-level:1;
  59. font-size:10.0pt;
  60. font-family:Verdana;
  61. mso-font-kerning:0pt;
  62. font-weight:bold;}
  63. h2
  64. {mso-margin-top-alt:auto;
  65. margin-right:0in;
  66. mso-margin-bottom-alt:auto;
  67. margin-left:0in;
  68. mso-pagination:widow-orphan;
  69. mso-outline-level:2;
  70. font-size:18.0pt;
  71. font-family:"Times New Roman";
  72. font-weight:bold;}
  73. h3
  74. {mso-margin-top-alt:auto;
  75. margin-right:0in;
  76. mso-margin-bottom-alt:auto;
  77. margin-left:0in;
  78. mso-pagination:widow-orphan;
  79. mso-outline-level:3;
  80. font-size:13.5pt;
  81. font-family:"Times New Roman";
  82. font-weight:bold;}
  83. h4
  84. {mso-margin-top-alt:auto;
  85. margin-right:0in;
  86. mso-margin-bottom-alt:auto;
  87. margin-left:0in;
  88. mso-pagination:widow-orphan;
  89. mso-outline-level:4;
  90. font-size:12.0pt;
  91. font-family:"Times New Roman";
  92. font-weight:bold;}
  93. a:link, span.MsoHyperlink
  94. {color:blue;
  95. text-decoration:underline;
  96. text-underline:single;}
  97. a:visited, span.MsoHyperlinkFollowed
  98. {color:blue;
  99. text-decoration:underline;
  100. text-underline:single;}
  101. p
  102. {mso-margin-top-alt:auto;
  103. margin-right:0in;
  104. mso-margin-bottom-alt:auto;
  105. margin-left:0in;
  106. mso-pagination:widow-orphan;
  107. font-size:12.0pt;
  108. font-family:"Times New Roman";
  109. mso-fareast-font-family:"Times New Roman";}
  110. pre
  111. {margin:0in;
  112. margin-bottom:.0001pt;
  113. mso-pagination:widow-orphan;
  114. tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;
  115. font-size:10.0pt;
  116. font-family:"Courier New";
  117. mso-fareast-font-family:"Courier New";}
  118. span.SpellE
  119. {mso-style-name:"";
  120. mso-spl-e:yes;}
  121. span.GramE
  122. {mso-style-name:"";
  123. mso-gram-e:yes;}
  124. @page Section1
  125. {size:8.5in 11.0in;
  126. margin:1.0in 1.25in 1.0in 1.25in;
  127. mso-header-margin:.5in;
  128. mso-footer-margin:.5in;
  129. mso-paper-source:0;}
  130. div.Section1
  131. {page:Section1;}
  132. /* List Definitions */
  133. @list l0
  134. {mso-list-id:149904795;
  135. mso-list-type:hybrid;
  136. mso-list-template-ids:2069783722 67698689 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
  137. @list l0:level1
  138. {mso-level-number-format:bullet;
  139. mso-level-text:\F0B7;
  140. mso-level-tab-stop:.5in;
  141. mso-level-number-position:left;
  142. text-indent:-.25in;
  143. font-family:Symbol;}
  144. @list l0:level2
  145. {mso-level-number-format:bullet;
  146. mso-level-text:o;
  147. mso-level-tab-stop:1.0in;
  148. mso-level-number-position:left;
  149. text-indent:-.25in;
  150. font-family:"Courier New";}
  151. ol
  152. {margin-bottom:0in;}
  153. ul
  154. {margin-bottom:0in;}
  155. -->
  156. </style>
  157. <!--[if gte mso 10]>
  158. <style>
  159. /* Style Definitions */
  160. table.MsoNormalTable
  161. {mso-style-name:"Table Normal";
  162. mso-tstyle-rowband-size:0;
  163. mso-tstyle-colband-size:0;
  164. mso-style-noshow:yes;
  165. mso-style-parent:"";
  166. mso-padding-alt:0in 5.4pt 0in 5.4pt;
  167. mso-para-margin:0in;
  168. mso-para-margin-bottom:.0001pt;
  169. mso-pagination:widow-orphan;
  170. font-size:10.0pt;
  171. font-family:"Times New Roman";}
  172. </style>
  173. <![endif]-->
  174. </head>
  175. <body lang=EN-US link=blue vlink=blue style='tab-interval:.5in'>
  176. <div class=Section1>
  177. <h2><a name="_top"></a><span style='font-family:Verdana'>BINDVIEW: Network
  178. Configuration/Installation Sample<o:p></o:p></span></h2>
  179. <p><span style='font-size:10.0pt;font-family:Arial;color:red'>[This is
  180. preliminary documentation and subject to change.]</span><span style='font-size:
  181. 10.0pt;font-family:Verdana'><o:p></o:p></span></p>
  182. <h3><span style='font-family:Verdana'>SUMMARY<o:p></o:p></span></h3>
  183. <p><span style='font-size:10.0pt;font-family:Verdana'>This sample demonstrates how
  184. to use of <span class=SpellE>INetCfg</span> APIs to enumerate, install, uninstall,
  185. bind and unbind network components.<o:p></o:p></span></p>
  186. <p><span style='font-size:10.0pt;font-family:Verdana'>The sample compiles
  187. properly for 64-bit, builds properly with Microsoft� Visual C� 6.0. <o:p></o:p></span></p>
  188. <h3><span style='font-family:Verdana'>BUILDING THE SAMPLE<o:p></o:p></span></h3>
  189. <p><span style='font-size:10.0pt;font-family:Verdana'>To build the sample, <span
  190. class=GramE>type <b>build</b></span>. This command produces the binary bindview.exe.<o:p></o:p></span></p>
  191. <h3><span style='font-family:Verdana'>INSTALLING THE SAMPLE<o:p></o:p></span></h3>
  192. <p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'>Copy the
  193. binary bindview.exe to the directory from where you want to run the sample. <o:p></o:p></span></p>
  194. <h3><span style='font-family:Verdana'>RUNNING THE SAMPLE<o:p></o:p></span></h3>
  195. <p class=MsoNormal><span class=GramE><span style='font-size:10.0pt;font-family:
  196. Verdana'>Type bindview.exe at the command prompt to run the program.</span></span><span
  197. style='font-size:10.0pt;font-family:Verdana'> You can perform the following
  198. operations.<o:p></o:p></span></p>
  199. <p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'><o:p>&nbsp;</o:p></span></p>
  200. <ul style='margin-top:0in' type=disc>
  201. <li class=MsoNormal style='mso-list:l0 level1 lfo1;tab-stops:list .5in'><span
  202. style='font-size:10.0pt;font-family:Verdana'>Install a network protocol,
  203. service or client component.<o:p></o:p></span></li>
  204. <li class=MsoNormal style='mso-list:l0 level1 lfo1;tab-stops:list .5in'><span
  205. style='font-size:10.0pt;font-family:Verdana'>Uninstall a network protocol,
  206. service or client component.<o:p></o:p></span></li>
  207. <li class=MsoNormal style='mso-list:l0 level1 lfo1;tab-stops:list .5in'><span
  208. style='font-size:10.0pt;font-family:Verdana'>By clicking the right mouse
  209. button on a network protocol, service or client, you can perform the
  210. following operations.<o:p></o:p></span></li>
  211. <ul style='margin-top:0in' type=circle>
  212. <li class=MsoNormal style='mso-list:l0 level2 lfo1;tab-stops:list 1.0in'><span
  213. style='font-size:10.0pt;font-family:Verdana'><span
  214. style='mso-spacerun:yes'>�</span>Bind the network component to another
  215. component.<o:p></o:p></span></li>
  216. <li class=MsoNormal style='mso-list:l0 level2 lfo1;tab-stops:list 1.0in'><span
  217. style='font-size:10.0pt;font-family:Verdana'>Unbind the network component
  218. from another component that is bound to it.<o:p></o:p></span></li>
  219. </ul>
  220. <li class=MsoNormal style='mso-list:l0 level1 lfo1;tab-stops:list .5in'><span
  221. style='font-size:10.0pt;font-family:Verdana'>By clicking the right mouse
  222. button on a binding path, you can perform the following operations.<o:p></o:p></span></li>
  223. <ul style='margin-top:0in' type=circle>
  224. <li class=MsoNormal style='mso-list:l0 level2 lfo1;tab-stops:list 1.0in'><span
  225. style='font-size:10.0pt;font-family:Verdana'>Disable the binding path if
  226. it is enabled.<o:p></o:p></span></li>
  227. <li class=MsoNormal style='mso-list:l0 level2 lfo1;tab-stops:list 1.0in'><span
  228. style='font-size:10.0pt;font-family:Verdana'>Enable the binding path if
  229. it is disabled.<o:p></o:p></span></li>
  230. </ul>
  231. <li class=MsoNormal style='mso-list:l0 level1 lfo1;tab-stops:list .5in'><span
  232. style='font-size:10.0pt;font-family:Verdana'>Save the binding information to
  233. a file.<o:p></o:p></span></li>
  234. </ul>
  235. <h3><span style='font-family:Verdana'>CODE TOUR<o:p></o:p></span></h3>
  236. <h4><span style='font-family:Verdana'>File Manifest<o:p></o:p></span></h4>
  237. <pre><u>File<span style='mso-tab-count:2'>���������� </span>Description<o:p></o:p></u></pre><pre><span
  238. style='text-transform:uppercase'>BINDVIEW.CPP</span><span style='mso-tab-count:
  239. 1'>�� </span>Contains <span class=SpellE>WinMain</span> and dialog box related functions.</pre><pre><span
  240. style='text-transform:uppercase'>NetCfgAPI.cpp</span><span style='mso-tab-count:
  241. 1'>� </span>Contains <span class=SpellE>INetCfg</span> functions.</pre><pre>BINDING.CPP<span
  242. style='mso-tab-count:1'>��� </span>Contains binding path related functions. </pre><pre><span
  243. style='text-transform:uppercase'>Component.cpp</span><span style='mso-tab-count:
  244. 1'>� </span>Contains network component related functions.</pre><pre><span
  245. class=GramE>RESOURCE.H<span style='mso-tab-count:1'>���� </span>Resource header.</span></pre><pre>BINDVIEW.H<span
  246. style='mso-tab-count:1'>���� </span>Contains function prototypes.</pre><pre><span
  247. style='text-transform:uppercase'>NetCfgAPI.h</span><span style='mso-tab-count:
  248. 1'>��� </span>Contains function prototypes for <span class=SpellE>NetCfgAPI.cpp</span></pre><pre><span
  249. style='text-transform:uppercase'>BindView.rc</span><span style='mso-tab-count:
  250. 1'>��� </span>Resources for <span class=SpellE>Bindview</span></pre><pre><span
  251. class=GramE><span style='text-transform:uppercase'>BindView.ico</span><span
  252. style='mso-tab-count:1'>�� </span>Icon for the sample.</span><o:p></o:p></pre><pre><o:p>&nbsp;</o:p></pre><pre><o:p>&nbsp;</o:p></pre><pre><o:p>&nbsp;</o:p></pre>
  253. <p align=center style='text-align:center;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt'><a
  254. href="#_top"><span style='font-size:10.0pt;font-family:Verdana'>Top of page</span></a><span
  255. style='font-size:10.0pt;font-family:Verdana'> <o:p></o:p></span></p>
  256. <table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 width=624
  257. style='width:6.5in;mso-cellspacing:0in;mso-padding-alt:0in 0in 0in 0in'>
  258. <tr style='mso-yfti-irow:0;mso-yfti-lastrow:yes;height:1.5pt'>
  259. <td style='background:aqua;padding:.75pt .75pt .75pt .75pt;height:1.5pt'>
  260. <p class=MsoNormal><o:p>&nbsp;</o:p></p>
  261. </td>
  262. </tr>
  263. </table>
  264. <p style='tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt'><span
  265. style='font-size:7.5pt;font-family:"MS Sans Serif"'>� Microsoft Corporation
  266. 1999</span><span style='font-size:10.0pt;font-family:Verdana'> <o:p></o:p></span></p>
  267. </div>
  268. </body>
  269. </html>