Networking Forums

Networking Forums > Computer Networking > Windows Networking > Any win32 API to set IP Address?

Reply
Thread Tools Display Modes

Any win32 API to set IP Address?

 
 
Konda Ankireddyapalli
Guest
Posts: n/a

 
      10-29-2004, 04:28 PM
Hello all,

Anyone knows of any Windows API to set IP address on an adapter(or a
virtual adapter)? We used AddIpAddress from IPHelper but that seems to be
not-permanent(disappers after reboot). Is there a known win32 way of
configuring an IP address without using WMI?

Thanks in advance,
Konda


 
Reply With Quote
 
 
 
 
Alex Blekhman
Guest
Posts: n/a

 
      11-02-2004, 06:28 AM
Konda Ankireddyapalli wrote:
> Anyone knows of any Windows API to set IP address on an adapter(or
> a virtual adapter)?


I don't know how to do that. But there is IPCONFIG utility that can
change IP address. When I want to do something similar to what system
utilities do I always open their executables with Dependency Walker
and look at imported API functions. Then I read in MSDN about these
functions. Usually at this point solution becomes clear.

HTH
Alex


 
Reply With Quote
 
Phil Ineichen
Guest
Posts: n/a

 
      11-02-2004, 01:26 PM
"Alex Blekhman" <tkfx^NOSPAM^@yahoo.com> wrote in news:2uor97F2c0emlU1@uni-
berlin.de:

> Konda Ankireddyapalli wrote:
>> Anyone knows of any Windows API to set IP address on an adapter(or
>> a virtual adapter)?

>


You can use the IpReleaseAddress and IpRenewAddress fuctions in case your
are having a DHCP. Otherwiese you need the AddIpAddress and DeleteIpAddress
IP Helper functions.

PI
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Win32 The RPC server is unavailable kalamiti Windows Networking 8 02-08-2007 11:55 PM
win32 error Joe Windows Networking 0 12-06-2005 03:35 PM
Win2k or Win32 IPTABLES goonmunster Linux Networking 23 02-18-2005 11:32 PM
Any win32 API to set IP Address? Konda Ankireddyapalli Windows Networking 2 11-02-2004 01:26 PM
Very slow X-Win32 Brian Hilstrom Linux Networking 1 09-09-2003 06:10 AM



1 2 3 4 5 6 7 8 9 10 11