changing IPs from C/C++ w/out DOS window.
- From: Potes <Potes@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 19 Feb 2008 09:40:04 -0800
I am trying to write a windows API program in C to manage my IP addresses,
hostname etc.
I want to be able to change the configuration of the IP address.
Unfortunately, iphlpapi doesn't provide a good method to do so (I've heard
there's a hidden function in it that can do it but I haven't been able to
find it). Instead I've been using
system(netsh ...)
to do it but it pops up an ugly DOS window. So then I tried
system(start /MIN /WAIT netsh ...)
but that doesn't cause the program to wait for the netsh command to finish.
So to reiterate: I'm looking for a way to change network settings on the
computer and
A: Not have a DOS window popup
B: Have my C program wait for the netsh process to finish.
Thank you,
Potes
.
- Follow-Ups:
- Re: changing IPs from C/C++ w/out DOS window.
- From: Volodymyr M. Shcherbyna
- Re: changing IPs from C/C++ w/out DOS window.
- Prev by Date: Re: IOCP and I/O completion order
- Next by Date: Re: IOCP and I/O completion order
- Previous by thread: Re: How to get the size of a very large file with WinHttp
- Next by thread: Re: changing IPs from C/C++ w/out DOS window.
- Index(es):
Relevant Pages
|
|