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.

175 lines
6.8 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 9">
  8. <meta name=Originator content="Microsoft Word 9">
  9. <link rel=File-List href="./netcfg_files/filelist.xml">
  10. <title>Network Configuration Utility sample</title>
  11. <style>
  12. <!--
  13. /* Font Definitions */
  14. @font-face
  15. {font-family:"MS Sans Serif";
  16. panose-1:0 0 0 0 0 0 0 0 0 0;
  17. mso-font-charset:0;
  18. mso-generic-font-family:swiss;
  19. mso-font-format:other;
  20. mso-font-pitch:variable;
  21. mso-font-signature:3 0 0 0 1 0;}
  22. @font-face
  23. {font-family:Verdana;
  24. panose-1:2 11 6 4 3 5 4 4 2 4;
  25. mso-font-charset:0;
  26. mso-generic-font-family:swiss;
  27. mso-font-pitch:variable;
  28. mso-font-signature:536871559 0 0 0 415 0;}
  29. /* Style Definitions */
  30. p.MsoNormal, li.MsoNormal, div.MsoNormal
  31. {mso-style-parent:"";
  32. margin:0in;
  33. margin-bottom:.0001pt;
  34. mso-pagination:widow-orphan;
  35. font-size:12.0pt;
  36. font-family:"Times New Roman";
  37. mso-fareast-font-family:"Times New Roman";}
  38. h1
  39. {mso-style-next:Normal;
  40. margin:0in;
  41. margin-bottom:.0001pt;
  42. mso-pagination:widow-orphan;
  43. page-break-after:avoid;
  44. mso-outline-level:1;
  45. font-size:10.0pt;
  46. font-family:Verdana;
  47. mso-font-kerning:0pt;
  48. font-weight:bold;}
  49. a:link, span.MsoHyperlink
  50. {color:blue;
  51. text-decoration:underline;
  52. text-underline:single;}
  53. a:visited, span.MsoHyperlinkFollowed
  54. {color:blue;
  55. text-decoration:underline;
  56. text-underline:single;}
  57. p
  58. {margin-right:0in;
  59. mso-margin-top-alt:auto;
  60. mso-margin-bottom-alt:auto;
  61. margin-left:0in;
  62. mso-pagination:widow-orphan;
  63. font-size:12.0pt;
  64. font-family:"Times New Roman";
  65. mso-fareast-font-family:"Times New Roman";}
  66. pre
  67. {margin:0in;
  68. margin-bottom:.0001pt;
  69. mso-pagination:widow-orphan;
  70. 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;
  71. font-size:10.0pt;
  72. font-family:"Courier New";
  73. mso-fareast-font-family:"Courier New";}
  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. </head>
  85. <body lang=EN-US link=blue vlink=blue style='tab-interval:.5in'>
  86. <div class=Section1>
  87. <h2><a name="_top"></a><span style='font-family:Verdana'>Network Configuration
  88. Sample (SNETCFG)<o:p></o:p></span></h2>
  89. <p><span style='font-size:10.0pt;font-family:Arial;color:red'>[This is
  90. preliminary documentation and subject to change.]</span><span style='font-size:
  91. 10.0pt;font-family:Verdana'><o:p></o:p></span></p>
  92. <h3><span style='font-family:Verdana'>SUMMARY<o:p></o:p></span></h3>
  93. <p><span style='font-size:10.0pt;font-family:Verdana'>This sample demonstrates
  94. use of INetCfg APIs to enumerate, install and uninstall network components.<o:p></o:p></span></p>
  95. <p><span style='font-size:10.0pt;font-family:Verdana'>The sample compiles properly
  96. for 64-bit, builds properly with Microsoft� Visual C� 6.0, and supports Plug
  97. and Play. <o:p></o:p></span></p>
  98. <h3><span style='font-family:Verdana'>BUILDING THE SAMPLE<o:p></o:p></span></h3>
  99. <p><span style='font-size:10.0pt;font-family:Verdana'>To build the sample, type
  100. <b>build</b>. This command produces the binary Snetcfg.exe, which is the sample
  101. network configuration utility.<o:p></o:p></span></p>
  102. <h3><span style='font-family:Verdana'>INSTALLING THE SAMPLE<o:p></o:p></span></h3>
  103. <p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'>Copy the
  104. binary snetcfg.exe to your local drive, to a directory that is listed in the
  105. PATH environment variable.<o:p></o:p></span></p>
  106. <p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></span></p>
  107. <h3><span style='font-family:Verdana'>RUNNING THE SAMPLE<o:p></o:p></span></h3>
  108. <p><span style='font-size:10.0pt;font-family:Verdana'>Type �snetcfg -?� at a
  109. command-line prompt to view supported options. The �-v� option enables verbose
  110. output along with other options.<o:p></o:p></span></p>
  111. <p><span style='font-size:10.0pt;font-family:Verdana'>Some of the supported
  112. options are:<o:p></o:p></span></p>
  113. <p><span style='font-size:10.0pt;font-family:Verdana'>-q: query for presence of
  114. a component<o:p></o:p></span></p>
  115. <p><span style='font-size:10.0pt;font-family:Verdana'>-i: install a component<o:p></o:p></span></p>
  116. <p><span style='font-size:10.0pt;font-family:Verdana'>-u: uninstall a component<o:p></o:p></span></p>
  117. <p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'>To
  118. install the Passthru driver, type <b>snetcfg -l d:\sample\netsf.inf -c s -i
  119. ms_passthru</b>. To uninstall, type <b>snetcfg -u ms_passthru</b><o:p></o:p></span></p>
  120. <h3><span style='font-family:Verdana'>CODE TOUR<o:p></o:p></span></h3>
  121. <h4><span style='font-family:Verdana'>File Manifest<o:p></o:p></span></h4>
  122. <pre><u>File<span style='mso-tab-count:2'>���������� </span>Description<o:p></o:p></u></pre><pre>Idls.idl<span
  123. style='mso-tab-count:1'>������ </span>This file includes Netcfgx.idl</pre><pre>Implinc.cpp<span
  124. style='mso-tab-count:1'>��� </span>File including GUID definitions</pre><pre>Main.cpp<span
  125. style='mso-tab-count:1'>������ </span>File containing implementations of main and usage functions</pre><pre>Pch.h<span
  126. style='mso-tab-count:2'>��������� </span>Pre-compiled header file</pre><pre>Snetcfg.cpp<span
  127. style='mso-tab-count:1'>��� </span>Sample source illustrating use of INetCfg APIs</pre><pre>Snetcfg.h<span
  128. style='mso-tab-count:1'>����� </span>The header file for Snetcfg.cpp</pre><pre>Snetcfg.rc<span
  129. style='mso-tab-count:1'>���� </span>Resource file</pre><pre><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></pre><pre><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></pre><pre><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></pre>
  130. <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
  131. href="#_top"><span style='font-size:10.0pt;font-family:Verdana'>Top of page</span></a><span
  132. style='font-size:10.0pt;font-family:Verdana'> <o:p></o:p></span></p>
  133. <table border=0 cellspacing=0 cellpadding=0 width=624 style='width:6.5in;
  134. mso-cellspacing:0in;mso-padding-alt:0in 0in 0in 0in'>
  135. <tr style='height:1.5pt'>
  136. <td style='background:aqua;padding:.75pt .75pt .75pt .75pt;height:1.5pt'>
  137. <p class=MsoNormal><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></p>
  138. </td>
  139. </tr>
  140. </table>
  141. <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
  142. style='font-size:7.5pt;font-family:"MS Sans Serif"'>� Microsoft Corporation
  143. 1999</span><span style='font-size:10.0pt;font-family:Verdana'> <o:p></o:p></span></p>
  144. </div>
  145. </body>
  146. </html>