Lebaru,
There is no magic way to do this. All the properties on the adapter's
Advanced tab (right click on My Network Places, select properties, right
click on specific NIC, select properties, select Configure, select Advanced
tab -- just to make sure we're all looking at the same place) are under the
domain/control of the miniport developer. Each property (including its
name, type, ranges, default, etc) is specified in the adapter's INF as an
Ndi\Param. When the miniport starts up, it is able to retrieve those
parameters. Since these settings are by and for the NIC manufacturer,
there is no standardized way (IOCTL, OID, etc) to change these.
You should never touch these values directly in the registry for released
products, but for a testing scenario, and you fully understand that values
that you are changing, you can change these in the registry. To make sure
they take effect, you should disable and then re-enable the adapter
(SetupDi APIs). This will cause the miniport to shut down, restart and
re-read these values. The INetCfg APIs, in the DDK, and the snetcfg and
bindview samples will illustrate how to enumerate the adapters and find
each adapter's parameter hive in the registry. They are well known to be
at HKLM\System\CCS\Control\Class\{4d36e972-...-...}\[instance]\Ndi\params.
You should use the APIs to get this location because the instance number
can change. In particular, look at INetCfgComponent::OpenParamKey once you
found the NIC you're interested in.
Again, this should only be done to build a testing environment.
HTH,
Bryan S. Burgin
bburgin@microsoft.com
This posting is provided "AS IS" with no warranties, and confers no rights.