Advanced LAN Settings

Posted on 2004-11-23
Last Modified: 2010-04-05
How can I configure Advanced Lan Settings ( IP Address , DNS , Gateway and subnet Mask ) in my Delphi code ?

I want to make on windows XP / 2000 and also Win 9x.

Thank You
Question by:HaithamEgy
    LVL 17

    Expert Comment

    by:Wim ten Brink
    > I want to make on windows XP / 2000 and also Win 9x.
    Well, that would be a huge problem since Win9x uses a different setup mechanism than XP/2000. And on XP/2000 there's also something like the security mechanism that will prevent applications making these kinds of changes. (It's a big security risk if applications can just mess around with it.) I don't know the solution to your question but am curious myself too.
    LVL 13

    Accepted Solution

    here's a link that shows how to change dns addresses, seems like is "simple" registry settings

    Author Comment

    I found the keys that I should modify in the registry but it requires writing multi-string value to the registry. I know how to write a string value to registry but i don't know how to write a multi-string value.I found an answer on Experts-Exchange to writing multi-string but it wasn't useful for me. I couldn't write the code corrctly.can you write for me a sample code for writing multi-string values to the registry ?
    Thank You.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Suggested Solutions

    A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
    Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    737 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

    19 Experts available now in Live!

    Get 1:1 Help Now