changing IPs from C/C++ w/out DOS window.



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
.



Relevant Pages

  • Re: P2P Groups and LinkLocal Cloud
    ... Also, I did leave the windows open in the netsh test, and that did not seem to help. ... You did mention the firewall disabled. ... > found the first node. ... the first window also failed to find the first ...
    (microsoft.public.win32.programmer.networks)
  • Re: Urgent : Reloading settings for NDIS driver
    ... Also check out the IP Helper APIs in the SDK and NetSh. ... window, type "netsh ?". ... For each command, ...
    (microsoft.public.development.device.drivers)
  • Re: Repost: Code behind events are not firing
    ... IE in a separate window through http. ... unchecked in the file type configuration. ... When a browser runs Word on the command line, ...
    (microsoft.public.vsnet.vstools.office)
  • Re: Netrek XP 2006 v1.3 released
    ... the Netrek Configuration Utility for this version has ... One of the main features of this version is the ability to change all ... No need to edit your netrekrc ever again. ... and the ability to resize the tactical window to smaller/larger. ...
    (rec.games.netrek)
  • Re: "Start program on connection": It isnt centered
    ... He didn't configure the program with TS Configuration but with Group Policy ... Editor and the program starts with a Window in maximized mode and he can not ... server to designate a program to run upon connection: ... How can I get TS to launch the program with its window ...
    (microsoft.public.windows.terminal_services)