Solved

Set Adapter IP!

Posted on 2004-09-25
2
336 Views
Last Modified: 2008-03-17
Hello...

With GetAdaptersInfo() i can list all network devices... But now I like to change the Adapter-IP and Subnetmask and so on... Like the Network-Configuration-Dialog.  

But I need APIs... Not the configuration-dialog!

Thanks for advance!
0
Comment
Question by:ChristopH1987
2 Comments
 
LVL 17

Assisted Solution

by:rstaveley
rstaveley earned 100 total points
ID: 12150261
Have you thought of exec-ing netsh?

At the cmd prompt type:

   netsh interface ip /?

You'll get a good idea of what to do with:

   netsh interface ip dump
0
 
LVL 86

Accepted Solution

by:
jkr earned 400 total points
ID: 12150529
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question