Change IP Address by Delphi code

Posted on 2003-03-12
Medium Priority
Last Modified: 2012-06-27
im trying to change my IP Address by delphi code . now i trying to change it by registry but i found a problem , i cant write Reg_MULTI_SZ . You can find the IP Address in this path (\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces) in one of its sub key
in the rootkey ( HKEY_LOCAL_MACHINE ) in  windows 2000 . I can get the subkey of the IP Address and read it , but i cant change it because i dont know how can i use REG_MULTI_SZ .
I want to know about that , or know another way to set IP Address by code .
Question by:moh_abbashar
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Accepted Solution

danich earned 1000 total points
ID: 8120025
It's been a while since I've done this but as I recall the correct method is an API call. I think the file was wininet.dll. Check your copy of MSDN for the proper file and syntax. Trying to hack it out manually through the registry is going to lead to problems.
LVL 12

Expert Comment

ID: 9238001
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is to:

Accept danich's Comments as answer

Please leave any comments here within the next seven days.


EE Cleanup Volunteer

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Just about everyone has an old PC laying around.  Ask anyone in the IT industry, whether they are a professional or play in it as a hobby.  From outdated Desktops to cheap "throwaway" laptops, they are all around and not as hard to "fix up" as you m…
Windows 7 does not have the best desktop search built in. This is something Windows 7 users have struggled with. You type something in, and your search results don’t always match what you are looking for, or it doesn’t actually work at all. There ar…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.
Suggested Courses

762 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