+ Reply to Thread
Results 1 to 2 of 2

Thread: About EnableDHCP registry

  1. #1
    Newbie chesschi is an unknown quantity at this point
    Join Date
    Dec 2008
    Posts
    3

    About EnableDHCP registry

    Hi all,

    I want to write an embedded Visual C++ program for an hardware with WINCE4 installed. I want to modify the IP address (a.b.c.d) and subnet mask (e.f.g.h) without DHCP by modifying the registry IPAddress, SubnetMask and EnableDHCP. However, the hardware is designed such that the adapter specific registry (e.g. EnableDHCP, Lease, AutoIP...etc) is loaded from an image file (which set EnableDHCP to 1) and the image file cannot be modified. So, when the program is run just after WINCE startup and tries to modify the IP address and subnet mask, it seems that OS kicks in after some sort of timeout and modifies the IP address to 0.0.0.0.

    Once the program started, I checked the IP address quickly and it is set to (a.b.c.d). After few seconds, it is set to 169.x.x.x. Few more seconds later, it is set to 0.0.0.0. The registry of IP address and subnet mask is set correctly but EnableDHCP is set to 1.

    I proposed to fix this problem by waiting for the OS timeout, then I start to modify the registry and restart the adapter. Does anyone have any suggestions to efficiently set the IP address? Any other better suggestions are appreciated.

    Many thanks!

  2. #2
    Newbie phone00x is an unknown quantity at this point
    Join Date
    Jan 2009
    Posts
    5

    Re: About EnableDHCP registry

    hello friend's
    i'am new programmer. i like it's.
    thank for your article.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Registry Watching
    By dargueta in forum Software Security
    Replies: 4
    Last Post: 03-30-2009, 06:51 PM
  2. .bat or .reg file to delete registry key
    By JBrinley in forum General Programming
    Replies: 4
    Last Post: 08-03-2008, 02:22 PM
  3. Deleting a subkey from the registry
    By reniery in forum Visual Basic Programming
    Replies: 6
    Last Post: 06-03-2008, 12:39 PM
  4. Best place to store information in the registry
    By Void in forum General Programming
    Replies: 1
    Last Post: 06-26-2006, 05:44 PM
  5. Proper way to store and retrieve colors from registry
    By NeedHelp in forum C# Programming
    Replies: 5
    Last Post: 05-28-2006, 10:28 PM

Bookmarks

Bookmarks

     
        Algorithms and Data Structures

        Java tutorials

        Algorithms Forum

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts