Closed Thread
Results 1 to 2 of 2

Thread: About EnableDHCP registry

  1. #1
    chesschi is offline Newbie
    Join Date
    Dec 2008
    Posts
    3
    Rep Power
    0

    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. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    phone00x is offline Newbie
    Join Date
    Jan 2009
    Posts
    5
    Rep Power
    0

    Re: About EnableDHCP registry

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

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Registry hex to text?
    By ahmed in forum The Lounge
    Replies: 5
    Last Post: 08-09-2011, 05:37 PM
  2. How do i add the following registry keys
    By iluxon4ik in forum General Programming
    Replies: 2
    Last Post: 03-11-2010, 05:54 PM
  3. Registry Watching
    By dargueta in forum Software Security
    Replies: 4
    Last Post: 03-30-2009, 04:51 PM
  4. Registry?
    By MarkA in forum Linux/Unix General
    Replies: 5
    Last Post: 12-10-2008, 05:15 AM
  5. Deleting a subkey from the registry
    By reniery in forum Visual Basic Programming
    Replies: 6
    Last Post: 06-03-2008, 10:39 AM

Tags for this Thread

Bookmarks

Posting Permissions

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