Solved

Set Adapter IP!

Posted on 2004-09-25
2
333 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
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…

895 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now