Re: IP Helper functions and related...

From: Far (Far_at_discussions.microsoft.com)
Date: 12/26/04


Date: Sun, 26 Dec 2004 07:17:04 -0800


Hi,

The only problem is that WMI doesn't cover all settings.

In particular there seems to be no documention as to how to disable network
services like "NetClient" alais ("Client for Microsoft Networks)
progammatically. WMI or any other way.

Thank you.

"Arkady Frenkel" wrote:

> The documented way is
> EnableDNS() of the WMI's
> Win32_NetworkAdapterConfiguration Class
> Arkady
>
> "luigif" <luigif@discussions.microsoft.com> wrote in message
> news:70EFDDA0-45E4-4189-AEB7-50911C5D5D95@microsoft.com...
> > I'm using: GetAdaptersInfo to retrieve a IP_ADAPTER_INFO pointer for each
> > adapter on a host.
> > I would like to be able to change WINS and DNS entries for any given
> adapter
> > on a
> > host. However I dont see any functions that would allow me to do this.
> > Furthermore
> > the IP_ADAPTER_INFO structure does not contain info about DNS. I have
> looked
> > at the netshell api family, but dont understand the madness. Can anyone
> tell
> > me how
> > to retrieve adapter info and change it programmatically?
> >
>
>
>



Relevant Pages

  • Setting IP Address
    ... My requirement seemed quite easy--move the adapter configuration UI into our ... dhcp, or vice-versa. ... The modertor of the NG assured me WMI was the official way for changing the ... Then IPCONFIG reported I had no adapter at all, ...
    (microsoft.public.win32.programmer.wmi)
  • Re: Problem accessing WMI class win32_NetworkAdapterConfiguration
    ... >I have some code that uses the WMI class win32_NetworkAdapterConfiguration ... >to access each adapter in a system. ... On a very few the code fails when trying to access the WMI object. ...
    (microsoft.public.dotnet.languages.csharp)
  • Problem accessing WMI class win32_NetworkAdapterConfiguration
    ... to access each adapter in a system. ... On a very few the code fails when trying to access the WMI object. ... ManagementObjectCollection adapters = objMC.GetInstances; ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Difference between adapter indexes
    ... Querying for the adapter through WMI returns an index of 1 though. ... OTOH you can check the index and see that it the same as in "route print" ... the AddIPAddressIP Helper function is available on both Windows ...
    (microsoft.public.win32.programmer.networks)