[This is
preliminary documentation and subject to change.]
This sample demonstrates
use of INetCfg APIs to enumerate, install and uninstall network components.
The sample compiles properly
for 64-bit, builds properly with Microsoft® Visual C® 6.0, and supports Plug
and Play.
To build the sample, type
build. This command produces the binary Snetcfg.exe, which is the sample
network configuration utility.
Copy the
binary snetcfg.exe to your local drive, to a directory that is listed in the
PATH environment variable.
Type “snetcfg -?” at a
command-line prompt to view supported options. The “-v” option enables verbose
output along with other options.
Some of the supported
options are:
-q: query for presence of
a component
-i: install a component
-u: uninstall a component
To
install the Passthru driver, type snetcfg -l d:\sample\netsf.inf -c s -i
ms_passthru. To uninstall, type snetcfg -u ms_passthru
File Description
Idls.idl This file includes Netcfgx.idlImplinc.cpp File including GUID definitionsMain.cpp File containing implementations of main and usage functionsPch.h Pre-compiled header fileSnetcfg.cpp Sample source illustrating use of INetCfg APIsSnetcfg.h The header file for Snetcfg.cppSnetcfg.rc Resource file|
|
© Microsoft Corporation
1999